Forum Replies Created

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

    in reply to: jQuery script not working in portfolio's AJAX preview #488456

    Bump 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

    in reply to: Color Section custom % height #488082

    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-40

    It worked perfectly for me.

    in reply to: How To Make Number Prominent #488081

    You can add this code to your style.css file (Appearance -> Editor)

    .phone-info {
    font-size: 25px; // adjust as needed
    }
Viewing 4 posts - 1 through 4 (of 4 total)