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’ ) . ‘
‘;
?>