Tagged: enfold, transparency menu
-
AuthorPosts
-
July 1, 2014 at 5:39 pm #285815
I love the transparency menu option – but dislike how quickly it goes back to the default fixed menu at the top. How would I make that transition take place like 800px down on the page?
July 3, 2014 at 7:10 am #286517Hi Andrea!
Thank you for using the theme!
Please edit js > avia.js, find this code on line 1198:
if(transparent) { if(st > 50) { header.removeClass('av_header_transparency'); } else { header.addClass('av_header_transparency'); } }Replace it with this:
if(transparent) { if(st > 600) { header.removeClass('av_header_transparency'); } else { header.addClass('av_header_transparency'); } }Remove browser cache then reload the page a few times.
Regards,
IsmaelJuly 3, 2014 at 5:17 pm #286746Fantastic. Is there a way of getting that into the child theme? I’d imagine not, but it’s worth asking.
July 3, 2014 at 6:18 pm #286781Works great! Thank you!
July 4, 2014 at 12:00 am #286948Hi @KingConga!
Refer to this topic:
https://kriesi.at/support/topic/use-avia-js-in-child-theme/Regards,
JosueJuly 4, 2014 at 4:11 am #287025That’s brilliant.
Is the idea to put the whole of the contents of avia.js into the child theme or just the snippet?
I was wondering if it could be put into the child theme so it was ‘upgrade proof’.July 4, 2014 at 4:32 am #287027Yes, you’d need to place the whole contents of avia.js in the child folder. It is update proof (it won’t get lost when updating) but if we update something in avia.js (check changelog) it is recommended to update your child avia.js too, and redo this transparent mod.
Cheers!
Josue -
AuthorPosts
- You must be logged in to reply to this topic.
