Forum Replies Created
-
AuthorPosts
-
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
November 28, 2018 at 9:27 pm in reply to: JavaScript Error on Mobile – Tabs Element inside Code Block – Works on Desktop #1038737Hi Victoria- here you go, login credentials for you in the private content box below.
Greg
February 23, 2018 at 6:20 pm in reply to: One page navigation sticky header moves content behind header on tablet #916790So 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.
February 22, 2018 at 10:05 pm in reply to: One page navigation sticky header moves content behind header on tablet #916362Thanks for the response Basilis.
Greg
February 22, 2018 at 4:06 pm in reply to: One page navigation sticky header moves content behind header on tablet #916150Hi @Ismael- would I place this code at the top of the “functions-enfold.php” file?
Thx,
Greg -
AuthorPosts