Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #749890

    How to add html code below the <head> tag in Enfold website?

    I am really stuck in this situation. Please help me out.
    Much appreciated.

    #749893

    Hey bossvarin!

    Please add following code to Functions.php file in Appearance > Editor to add the scripts to the header section of your page

    
    function my_custom_code(){
    //Your code goes here
    }
    add_action('wp_head', 'my_custom_code');

    Cheers!
    Yigit

    #750353

    Hi Yigit,
    Could you also please provide me example code to add meta tag in the function you mentioned
    Thank you in advance
    Regards

    #750589

    Hi,

    Please see example code below

    function my_custom_code(){
    echo '<meta name="robots" content="noindex, follow" />' . "\n";
    }
    add_action('wp_head', 'my_custom_code');

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.