Forum Replies Created
-
AuthorPosts
-
August 21, 2015 at 9:02 pm in reply to: jQuery script not working in portfolio's AJAX preview #491602
Hey Elliott,
Thank you for your help!
It seems the .live method is deprecated as of jQuery 1.7 so I used .on() and I managed to solve the issue.
My jQuery code looks like that :
jQuery(document).ready(function($) { $("body").on("click", "#video-overlay", function(playVideo){ function autoPlayOn(el){ el.attr('src',el.attr('src').replace('autoplay=0','autoplay=1')); }; $('#my-video').show(); autoPlayOn($('#my-video')); $('#video-overlay').hide(); }); });
I definitely need to learn more about JavaScript. I guess me not really understanding the DOM was the main cause of the problem.
Thanks again and keep up the good work.August 16, 2015 at 11:12 pm in reply to: jQuery script not working in portfolio's AJAX preview #488456Bump and little update :
After hours spent on google and stackoverflow, I really think I need to change the way I select the html elements that I want with jQuery if I want my script to work on the AJAX preview.
Maybe by using a .find() or .filter() method on the AJAX results, but I don’t really now how to work on the AJAX query.
Can you please look into it and tell me at least where I should keep digging?Regards
Cyril
Hi,
You can add all the custom values you want by following the steps mentioned in this post https://kriesi.at/support/topic/color-section-at-least-40It worked perfectly for me.
You can add this code to your style.css file (Appearance -> Editor)
.phone-info { font-size: 25px; // adjust as needed }
-
AuthorPosts