Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Prevent Popup for YouTube and Vimeo links #1074956

    Here you go Jordan. Link to Test page in Private Content – with just an image pointing to a sample video on YouTube.com.

    Thanks for the help

    Hi Victoria- here you go, login credentials for you in the private content box below.

    Greg

    So I had a slightly different situation that I think I worked through. Thought I’d post here in the event anyone else can benefit.

    I was using a Button (not a navigation link) to scroll to different sections on the page. Found the section in avia.js that controlled click to a hash tag and added the following line:

    if( $(window).innerWidth() < 1025 && $(window).innerWidth() > 736 ) { target -= 100; }

    That line was placed within this block:

    if(container.length)
    	{
    		var cur_offset = the_win.scrollTop(),
    			container_offset = container.offset().top,
    			target =  container_offset - fixedMainPadding,
    			hash = window.location.hash,
    			hash = hash.replace(/\//g, ""),
    			oldLocation=window.location.href.replace(hash, ''),
    			newLocation=this,
    			duration= data.duration || 1200,
    			easing= data.easing || 'easeInOutQuint';
    		
    		if( $(window).innerWidth() < 1025 && $(window).innerWidth() > 736 ) { target -= 100; }
    		if(sticky_sub.length && container_offset > sticky_sub.offset().top) { target -= sticky_sub.outerHeight() - 3;}
    		
    		// make sure it's the same location
    		if(oldLocation+newHash==newLocation || originHash)
    		{
    			if(cur_offset != target) // if current pos and target are the same dont scroll
    			{
    				if(!(cur_offset == 0 && target <= 0 )) // if we are at the top dont try to scroll to top or above
    				{
    					the_win.trigger('avia_smooth_scroll_start');

    Not sure if there was a better way to handle, but seems to be working properly now on iPad Portrait and Landscape for me.

    Thx
    Greg

    • This reply was modified 6 years, 9 months ago by Gregory.

    Thanks for the response Basilis.

    Greg

    Hi @Ismael- would I place this code at the top of the “functions-enfold.php” file?

    Thx,
    Greg

Viewing 5 posts - 1 through 5 (of 5 total)