-
AuthorPosts
-
March 24, 2014 at 12:37 pm #242030
Sir,
We want to update wordpress theme update for that we add live chat code and tracking code in headers.php file but where we can add live chat code in header.php so pleae help so that we can add live chat code and then we will update the theme
our website is comprompt.co.in
so reply us ASAP.March 25, 2014 at 6:37 am #242542Hey comprompt!
What is the live chat code? Are you using any plugin for this? Please post the code on pastebin.com.
Best regards,
IsmaelMarch 26, 2014 at 2:49 pm #243364we want to update the wordpress theme in that header.php we want to add live chat button code.
we want to add live chat button code but where to put this code in header file just guide us .
below is the live chat code:<!– http://www.LiveZilla.net Chat Button Link Code –>
<style type=”text/css”>
div.img img
{float:right;position:fixed;
top:-70px;right:500px;
overflow:hidden;
}div.img a:hover img
{float:right;position:fixed;
top:0px;right:500px;
overflow:hidden;
}</style>
</div>
<!– http://www.LiveZilla.net Chat Button Link Code –>
<!– http://www.LiveZilla.net Tracking Code –>
<div id=”livezilla_tracking” style=”display:none”></div>
<script type=”text/javascript”>var script = document.createElement(“script”);script.type=”text/javascript”;var src = “http://www.comprompt.co.in/livechat/server.php?request=track&output=jcrpt&nse=”+Math.random();setTimeout(“script.src=src;document.getElementById(‘livezilla_tracking’).appendChild(script)”,1);</script>
<!– http://www.LiveZilla.net Tracking Code –>
March 26, 2014 at 2:54 pm #243366you just check where to add this code in header.php
live chat images is also added by mistake in the code.
just check and reply us aasp.March 26, 2014 at 3:22 pm #243376Hey!
Go to wp-content\themes\enfold\includes folder and open helper-main-menu.php file and find
do_action('ava_main_header');
and add your code right below it
Regards,
YigitAugust 29, 2014 at 6:03 am #310789Good Morning,
Can this do_action(‘ava_main_header’); fuction be called and added to via a child theme?
Cheers
Paul
August 29, 2014 at 1:16 pm #310903Hey Paul!
You can make changes on helper-main-menu.php file and move it to your child theme inside “includes” folder, if that is what you are asking. If not, please elaborate :)
Best regards,
YigitAugust 29, 2014 at 2:29 pm #310935Hey Thanks Yugit,
I solved the problem as stumbled upon another search topic.
Instead of modifying the code or trying to add a new widget area I added a function in child theme functions.php file.function hooks into the ava_main_header and
calls a IF (shortcode_exist (.weather shortcode.) echo do_shortcode command.And seems to work well.
Just follow question-
Is there a list of all the hooks / filters that enfold has available as couldn’t find this on the documentation or these support forums?August 29, 2014 at 2:31 pm #310939 -
AuthorPosts
- You must be logged in to reply to this topic.