Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress get template url

// Get template directory example:
<img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" />

// If you use child theme you will have to use another function:
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png" />
  
Comment

PREVIOUS NEXT
Code Example
Php :: php artisan serve port 
Php :: laravel project htaccess redirect to public path 
Php :: php 0 padding left 
Php :: timestamp false in laravel 
Php :: laravel migrate only 1 file 
Php :: fluid inline if 
Php :: get current user first and last name wordpress 
Php :: how to get page name in php 
Php :: create folder php 
Php :: wordpress get theme uri 
Php :: forget or remove a session in laravel 
Php :: php how to delete file 
Php :: laravel validation number greater than 0 
Php :: validation file type laravel 
Php :: how to calculate age in laravel 
Php :: php if url contains 
Php :: php parse float 2 decimal places 
Php :: grep only in php files 
Php :: inrandomorder laravel 
Php :: php strict-origin-when-cross-origin 
Php :: php string replace 
Php :: codeigniter last insert id 
Php :: get image extension in php 
Php :: date php 
Php :: php check if url exists 
Php :: install php-8 extentions 
Php :: set nav link active on the basis of route laravel 
Php :: laravel migration price 
Php :: php curl delete request 
Php :: install php7.4 in linux server 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =