Search
 
SCRIPT & CODE EXAMPLE
 

PHP

custom js css using wordpress hook

add_action('wp_enqueue_scripts','custom_script');
function custom_script()
{
	wp_enqueue_script('custom_script',get_template_directory_uri().'/js/custom.js');
}

add_action('wp_enqueue_scripts','custom_css');
function custom_css()
{
	wp_enqueue_style('style', get_template_directory_uri().'/css/custom.css');
}
Comment

PREVIOUS NEXT
Code Example
Php :: logout php 
Php :: laravel eloquent search query 2020 
Php :: remove all html codes using php 
Php :: convert to int laravel 
Php :: get the current page id in wordpress 
Php :: woocommerce terms and condition fields checked by default 
Php :: - root composer.json requires php ^7.1.3 but your php version (8.0.3) does not satisfy that requirement. 
Php :: how to connect to a database in php 
Php :: localhost install new plugin ftp wp 
Php :: wordpress logout to home page 
Php :: livewire pagination bootstrap 
Php :: php check if json 
Php :: how to add hour minute seconds in php datetime 
Php :: pre_r 
Php :: laravel where column different 
Php :: wp safe redirect 
Php :: php get first and last day of previous month 
Php :: strpos codeigniter php 7 
Php :: str_includes php 
Php :: php bbcode tag dellete 
Php :: laravel carbon human readable 
Php :: php Access-Control-Allow-Origin 
Php :: php get class name of this 
Php :: group users on country vice in laravel 
Php :: how to run laravel project 
Php :: php mysql datetime format string 
Php :: strupper 
Php :: header remove php 
Php :: how check if variable is resgister in laravel 
Php :: convert stdclass to json in php 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =