Forum Replies Created

Viewing 13 posts - 61 through 73 (of 73 total)
  • Author
    Posts
  • in reply to: Can I change the mobile menu button from icon to text? #763159

    Thank you! It works as I wished!
    Is there a way to show the menu button and also a menu text? and maybe to change the font of the “Menu” text? Now that I implemented that, it looks not that sleek, and the rest of your design is very high quality and gorgeously designed, I hate to ruing it…
    Thank you for your patience and all your help!!!

    in reply to: How to add "OnClick" attribute to a phone call button? #763156

    Thank you Ismael!

    Now, for Analytics tracking I’m using the code:


    <script>
    (function($){
    $(window).load(function() {
    $(‘.button-1 a’).on(‘click’, function() {
    ga(‘send’, ‘event’, ‘button’, ‘click’, ‘button-1’);
    });
    $(‘.button-2 a’).on(‘click’, function() {
    ga(‘send’, ‘event’, ‘button’, ‘click’, ‘button-2’);
    });
    $(‘.button-3 a’).on(‘click’, function() {
    ga(‘send’, ‘event’, ‘button’, ‘click’, ‘button-3’);
    });
    });
    })(jQuery);
    </script>

    Inside the Analytics Code field (in Enfold tab).

    Is there a way to implement it in the div <div class=’phone-info> that is in the header, to track onclick on the phone number?

    Thanks again!

    in reply to: How to add "OnClick" attribute to a phone call button? #763100

    Thanks, I guess that code should replace the “av_custom_code” Yigit suggested before.

    And how about the “av_button_onclick” he suggested? should it stay exactly the same? I still can’t understand that part of the code: attr(‘onclick’,’_gaq.push([‘_trackPageview’, ‘/VP/XXX/XXX’]);’);
    Why are we using gaq.push if it’s not part of the code Google asked me to implement?

    Thanks!

    • This reply was modified 7 years, 8 months ago by 0_o.
    in reply to: How to add "OnClick" attribute to a phone call button? #759441

    I’m not sure why we used “gaq.push” before,

    The code that I need to implement in the a tag is:

    <a onclick="goog_report_conversion ('Description')" href="Link">Click Here</a>

    The code that I need to implement inside the body tag is:

    <script type="text/javascript">
      /* <![CDATA[ */
      goog_snippet_vars = function() {
        var w = window;
        w.google_conversion_id = 123123123;
        w.google_conversion_label = "123123123";
        w.google_remarketing_only = false;
      }
      goog_report_conversion = function(url) {
        goog_snippet_vars();
        window.google_conversion_format = "3";
        var opt = new Object();
        opt.onload_callback = function() {
        if (typeof(url) != 'undefined') {
          window.location = url;
        }
      }
      var conv_handler = window['google_trackConversion'];
      if (typeof(conv_handler) == 'function') {
        conv_handler(opt);
      }
    }
    /* ]]> */
    </script>
    <script type="text/javascript"
      src="//www.googleadservices.com/pagead/conversion_async.js">
    </script>
    • This reply was modified 7 years, 8 months ago by 0_o.
    in reply to: How to add "OnClick" attribute to a phone call button? #759223

    Hi, I tried that but I dont think it works as expected. Google tag manager (chrome extension) doesnt recognize the click.
    How can I start troubleshooting this issue? none of the code that I put in functions.php shows under “page source”.

    Many thanks!

    • This reply was modified 7 years, 8 months ago by 0_o.
    in reply to: Can I change the mobile menu button from icon to text? #758148

    Maybe I’m missing something but everything still looks the same…
    Thanks for your willing to help!

    in reply to: How to copy a color section between pages #754761

    Thanks for the help Kevin, it was much easier than I expected :)

    in reply to: How to show the top menu in Landing Page theme #751272

    Yes, that was the solution.

    in reply to: How to show the top menu in Landing Page theme #750127

    Thank you!

    in reply to: How to add "OnClick" attribute to a phone call button? #738580

    Thanks Yigit!!!
    Just to make sure I understand, I already enabled the custom css field, now in the Functions.php file in Appearance > Editor, do I need to add both of the codes you mentioned before, and just change the “Your code goes here”, so the additional lines in this file will look like that?

    function av_button_onclick(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘.CUSTOMCLASS123 a’).attr(‘onclick’,’_gaq.push([‘_trackPageview’, ‘/VP/XXX/XXX’]);’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘av_button_onclick’);

    function av_custom_code(){
    ?>
    CUSTOMCODEBLAHBLAH123
    <?php
    }
    add_action(‘wp_footer’, ‘av_custom_code’);

    in reply to: How to add "OnClick" attribute to a phone call button? #736850

    I guess you’re referring to #1
    How about #2 ? Where should I place this code? maybe Appearance > Editor > Theme Footer (footer.php) ?
    Also, is there a way I can edit the HTML/PHP of a page that I built (and continue editing) with Avia Layout Builder, or is it going to mess things up? (I used to have in the past a WYSIWYG editor that couldn’t load and edit a page I edited the HTML/PHP manually, it mess the whole page just to load the editor…).

    Thanks!

    • This reply was modified 7 years, 10 months ago by 0_o.
    in reply to: How to create separate "Color Section" for mobile and desktop? #726331

    you rock

    in reply to: How to create separate "Color Section" for mobile and desktop? #726328

    perfect thank you!

    Also, is there a way to remove the separation lines in the testimonials module (grid style) ?

Viewing 13 posts - 61 through 73 (of 73 total)