Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress theme basics including CSS and js

function add_theme_scripts() {
  wp_enqueue_style( 'style', get_stylesheet_uri() );
  
  wp_enqueue_style( 'slider', get_template_directory_uri() . '/css/slider.css', array(), '1.1', 'all');
  
  wp_enqueue_script( 'script', get_template_directory_uri() . '/js/script.js', array ( 'jquery' ), 1.1, true);
  
    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
      wp_enqueue_script( 'comment-reply' );
    }
}
add_action( 'wp_enqueue_scripts', 'add_theme_scripts' );
Comment

PREVIOUS NEXT
Code Example
Php :: php array sort 
Php :: overloading and overriding in php 
Php :: clear log file laravel 
Php :: laravel collection take 
Php :: query log laravel 
Php :: Csv To AssoT Php 
Php :: Passing values to blade using redirect() and back() functions 
Php :: $ whereis php terminal mac 
Php :: PHP substr — Return part of a string 
Php :: php find all subclasses of class 
Php :: netchain media 
Php :: init curl 
Php :: hint extension in visual studio code for laravel 
Php :: get ids from object 
Php :: php readlink 
Php :: laravel 8 php version requirements 
Php :: XAMPP PHPMyAdmin Access 
Php :: guzzle login example 
Php :: if certain condition is met exit if block php 
Php :: send email verification nootification laravel 
Php :: login as user in laravel from admin panel 
Php :: laravel package development 
Php :: Remove White Space At Sides 
Php :: query builder codeigniter 
Php :: php read excel file 
Php :: laravel find 
Php :: xampp php ini 
Php :: split functions.php 
Php :: getDoctrine 
Php :: magento 2 add cc transportbuilder 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =