get_template_directory()

Home Forums Calendar Products Events Calendar PRO get_template_directory()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1114183

    Hello i want to add icons in my custom page template…
    but if i use this: get_template_directory() or …_uri() or other from wordpress in browser console appear this error:

    (index):1 Not allowed to load local resource: file:///[]/mysite/wp-content/themes/my-template-name/assets/images/icons/icalendar.png

    all works correctly, only my icons are not shown.
    I’m developing in local environment.

    below the interested code snippet:

    <?php

    echo ‘+ ‘ . esc_html__( ‘Esporta iCalendar’, ‘the-events-calendar’ ) . ‘‘;

    ?>

    #1114448
    Cliff
    Member

    Hi Letizia.

    Could you please specify what exactly you’re trying to modify (screenshots or links) so I can best advise how to go about adding your custom icon(s)?

    #1120097
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘get_template_directory()’ is closed to new replies.