Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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.

    #242542

    Hey comprompt!

    What is the live chat code? Are you using any plugin for this? Please post the code on pastebin.com.

    Best regards,
    Ismael

    #243364

    we 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 class=img>

    LiveZilla Live Help</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 –>

    #243366

    you 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.

    #243376

    Hey!

    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,
    Yigit

    #310789

    Good Morning,

    Can this do_action(‘ava_main_header’); fuction be called and added to via a child theme?

    Cheers

    Paul

    #310903

    Hey 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,
    Yigit

    #310935

    Hey 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?

    #310939

    Hey!

    Great! Glad you figured it out!
    Unfortunately, it is not available. You are going to need to check theme files to find filters and actions. avf_ prefix is for filters ava_ prefix is for actions. Let us know if you have any other questions or issues!

    Best regards,
    Yigit

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.