Child Theme is not working correctly - by sande410

This topic has 8 replies, 4 voices, and was last updated 8 years, 8 months ago ago by Jack Richardson

  • Avatar: sande410
    sande410
    Participant
    September 16, 2015 at 00:03

    I want to modify changes to my header.php file. I downloaded it from the parent theme and then uploaded header.php to child theme. I added a script and it wasn’t showing.

    It worked when I added the script under my parent theme but this is not what I want. Please advise.

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: stan
    Stan Russell
    Participant
    September 16, 2015 at 08:20

    Hello,
    have you included header.php file to your child theme?

    Please read here how to do it right:
    https://codex.wordpress.org/Child_Themes#Referencing_.2F_Including_Files_in_Your_Child_Theme

    Regards,
    Stan Russell.

    Avatar: sande410
    sande410
    Participant
    September 17, 2015 at 19:41

    From my understand, I already did what is expected: Download header.php and upload header.php into child theme folder.

    No luck. Please advise.

    Avatar: Eva
    Eva Kemp
    Support staff
    September 17, 2015 at 19:45

    Hello,

    Please clarify what script you’ve added (write it in this topic) and specify what result you want to achieve.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: sande410
    sande410
    Participant
    September 17, 2015 at 19:49

    Under child theme’s file header.php file, I have added this script in head section, right before </head> closes:

    <script type=”text/javascript”>var $zoho= $zoho || {salesiq:{values:{},ready:function(){$zoho.salesiq.floatbutton.visible(“hide”);}}};var d=document;s=d.createElement(“script”);s.type=”text/javascript”;s.defer=true;s.src=”https://salesiq.zoho.com/livskin/float.ls?embedname=livskin&#8221;;t=d.getElementsByTagName(“script”)[0];t.parentNode.insertBefore(s,t);</script>

    After I save it, I view my sources and do not see it there. But when I add it under header.php in Parent theme, it does show. Lmk if that make sense.

    Avatar: Eva
    Eva Kemp
    Support staff
    September 17, 2015 at 20:22

    Hello,

    I’ve activated child theme and I see the script in source code:
    http://storage1.static.itmages.com/i/15/0917/h_1442517700_7930680_24cb3058ed.png
    Please clear browser cache and check again.

    Regards,
    Eva Kemp.

    Avatar: sande410
    sande410
    Participant
    September 18, 2015 at 22:55

    Thank you!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 19, 2015 at 09:24

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘Child Theme is not working correctly’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.