Warning: session_start(): open(/var/cpanel/php/sessions/ea-php74/sess_fgpplvt2ro8ojvdlvillje35rg, O_RDWR) failed: No such file or directory (2) in /home/mssoftpc/iqra.mssoftpc.com/admin/function.php on line 3

Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/ea-php74) in /home/mssoftpc/iqra.mssoftpc.com/admin/function.php on line 3
How to Add Scripts / Styles in head / footer | IQRA CMS

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.

  1. Create Function.php file and add sample code. Done

 

Head Hooks

  1. IQ_add_head_data
  2. IQ_admin_head
     
    Footer Hooks
    1. IQ_add_footer_data
    2. IQ_admin_footer