show an overlay menu element, only in hOMEPAGE
-
Hi,
Is there any way to show an element in overlay menu only on one page, in this case, the homepage and hide it from everywhere else.
I already know that this way:
.slug-page .overlay-element { display:none; }But I will be time-consuming to repeat this for every page, and product I have.
To be more precise, I'm using Overlay Menu and inside it I have the logo. But the thing is that in other pages beside the Home, the logo is already displayed.
-
sure why dont you right click that element in the gridder, click "set html class and id"
then set a class like: hello
then
.hello{ display: none; } .slug-home .hello{ display: block; }this hides the .logo html element everywhere, but shows it on the homepage. in case your homepage slug is home :D
-
sure why dont you right click that element in the gridder, click "set html class and id"
then set a class like: hello
then
.hello{ display: none; } .slug-home .hello{ display: block; }this hides the .logo html element everywhere, but shows it on the homepage. in case your homepage slug is home :D
@arminunruh said in show an overlay menu element, only in hOMEPAGE:
.hello{
display: none;
}
.slug-home .hello{
display: block;
}
Amazing! Thank you so very much!
-
P panteley deleted this topic on
-
P panteley restored this topic on
-
Q quirin referenced this topic on
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