Make a function in the child theme

  • Oliver



    I was wondering how to insert a script as a function into a child theme.

    This script must be inserted into header.php after the </head> but I want the script in my child theme.

    <script language = " javascript " type = "text / javascript ">
    if ( window ! = top) top.location.href = location.href ;
    </ script>

    Is this possible to add this script to the child theme but how to do?


    Kenneth John Odle


    If you want it after the </head>, you’ll need to copy over whatever template you want to include it in and add it to the child theme template file.



    Hi Kenneth

    Thanks once again !

    It is because of Graphene updates, you know, I forget to modified header.

    Ok. I will have to upload a new modified header and name it header.php and place it in the childtheme.

    Right ?

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.