Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress get theme uri

<img src="<?php echo get_template_directory_uri(); ?>/images/logo.png">
Comment

wordpress theme directory uri

add_action('wp_enqueue_scripts', 'wpdocs_scripts_method');
 
/*
 * Enqueue a script with the correct path.
 */
function wpdocs_scripts_method() {
    wp_enqueue_script(
        'custom_script',
        get_template_directory_uri() . '/js/custom_script.js',
        array('jquery')
    );
}
Comment

PREVIOUS NEXT
Code Example
Php :: access to this resource on the server is denied laravel 
Php :: long text in laravel migration 
Php :: laravel 8 password confirmation validation 
Php :: phpexcel set width 
Php :: laravel tinker update password 
Php :: php remove file 
Php :: php time script 
Php :: php array unique array to string conversion 
Php :: use of segment in laravel 8 
Php :: php remove extension from url 
Php :: how to use old for select in blade laravel 
Php :: php post form to self 
Php :: get last character of string php 
Php :: composer install ignore platform reqs 
Php :: macos install php 7.4 
Php :: Call to undefined function AppModelsstr_slug() 
Php :: twig replace char 
Php :: php get youtube code from url 
Php :: how to get category from post id 
Php :: date casting from datetime to d-m-Y laravel 
Php :: php split string along spaces 
Php :: get thumbnail alt wordpress 
Php :: get first key of array php 
Php :: category name wp query 
Php :: php timestamp to date 
Php :: display all errors at once in laravel 
Php :: write if and else in one line php 
Php :: remove last letter php 
Php :: php int to string 
Php :: Install ext-dom php 7.2 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =