This topic has 8 replies, 4 voices, and was last updated 9 years, 2 months ago ago by Jack Richardson
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.
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.
From my understand, I already did what is expected: Download header.php and upload header.php into child theme folder.
No luck. Please advise.
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.
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”;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.
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.
Thank you!
Hello,
You’re welcome.
Best regards,
Jack Richardson.
The issue related to '‘Child Theme is not working correctly’' has been successfully resolved, and the topic is now closed for further responses