Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress base theme child url

<!-- Get child theme directory url (yes, it's not a nice function name...) -->
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/test.png" />
<!-- Get theme directory url -->
<img src="<?php echo get_template_directory_uri(); ?>/images/test.png" />
 
PREVIOUS NEXT
Tagged: #wordpress #base #theme #child #url
ADD COMMENT
Topic
Name
9+1 =