Forum Replies Created
-
AuthorPosts
-
March 19, 2017 at 10:42 am 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!!!March 19, 2017 at 10:31 am in reply to: How to add "OnClick" attribute to a phone call button? #763156Thank 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!
March 19, 2017 at 7:19 am in reply to: How to add "OnClick" attribute to a phone call button? #763100Thanks, 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.
March 11, 2017 at 8:49 pm in reply to: How to add "OnClick" attribute to a phone call button? #759441I’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.
March 11, 2017 at 2:53 am in reply to: How to add "OnClick" attribute to a phone call button? #759223Hi, 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.
March 9, 2017 at 5:29 am in reply to: Can I change the mobile menu button from icon to text? #758148Maybe I’m missing something but everything still looks the same…
Thanks for your willing to help!Thanks for the help Kevin, it was much easier than I expected :)
Yes, that was the solution.
Thank you!
January 25, 2017 at 9:01 pm in reply to: How to add "OnClick" attribute to a phone call button? #738580Thanks 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’);January 21, 2017 at 8:33 pm in reply to: How to add "OnClick" attribute to a phone call button? #736850I 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.
December 19, 2016 at 11:30 pm in reply to: How to create separate "Color Section" for mobile and desktop? #726331you rock
December 19, 2016 at 11:24 pm in reply to: How to create separate "Color Section" for mobile and desktop? #726328perfect thank you!
Also, is there a way to remove the separation lines in the testimonials module (grid style) ?
-
AuthorPosts