How to Add Scripts / Styles in head / footer
Want a successful Modern site?
Start with IQRA training; it’s easy and quick to your needs.
How to Add Scripts / Styles to Head
Get Started
At its simplest, a IQRA Theme used for develop unique website for your own or client.
Sample Code
function IQRA_head(){
echo '<link rel="stylesheet" href="'.get_current_theme_dir().'style.css">';
echo ' <script src="#"></script> ';
}
add_action('IQ_add_head_data' , 'IQRA_head');
Admin Sample Code
function IQRA_head(){
echo '<link rel="stylesheet" href="'.get_current_theme_dir().'style.css">';
echo ' <script src="#"></script> ';
}
add_action('IQ_admin_head' , 'IQRA_head');
To add data to head, follow the steps below.
- Create Function.php file and add sample code. Done
Head Hooks
- IQ_add_head_data
-
IQ_admin_headFooter Hooks1. IQ_add_footer_data2. IQ_admin_footer