Return to Support

Make a function in the child theme

Home Forums Graphene WordPress theme Support Make a function in the child theme

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10016
    Oliver
    Member

    Hi

    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?

    #45146

    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.

    #45147
    Oliver
    Member

    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.