Hiding the Intro by clicking on another element
-
Dear dear Laytheme team,
I have an intro page, on which the nav menu is also visible:
http://avishay.wwwnlsrc4.supercp.comThe "Art" menu item is selected as it's the homepage, and I would like to somehow add a "click" function to it that will cause the intro go down (like on scroll down or clicking on the intro itself.)
Could you kindly guide me on how to do it?
I already have a custom js file where I can implement some tweaksThanks a lot,
Sasha -
Dear Sasha
@spontans
The Intro region will disappear when the class
hideis added.Active:

Hidden:

So you would want some code saying
"When you click on the menu item: art then add a class to the intro region called hide"
Have not tested this but should do or at least very close to solution:
jQuery(".menu-item-13").click(function(){ jQuery("#intro-region").addClass("hide") })Also please read about applying custom Javascript to Lay Theme 👍
Have a wonderful day Sasha
Richard
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login