- This topic has 8 replies, 2 voices, and was last updated 4 years, 5 months ago by
David.
-
AuthorPosts
-
December 28, 2018 at 4:37 am #767490
Mathieu
I want to exclude certain posts from “recent stuff” and other such widgets. Do I accomplish this using GP? Thanks!
December 28, 2018 at 4:42 am #767496Mathieu
Also, not related to my above problem but, on my home page https://studiolaflamme.com/
both the home and the images menu items light up. The images link is a #link to a row. What do you suggest to make this look better?
December 28, 2018 at 5:11 am #767515David
StaffCustomer SupportHi there,
to conditionally display different widgets you would need a plugin there are quite a few on the WordPress repository eg.
https://en-gb.wordpress.org/plugins/widget-options/
For the Images item, give the menu item a Class of
jump-link
and add this CSS:.header-wrap #site-navigation:not(.toggled) .main-nav > ul > li.jump-link:hover > a { color: #3a3a3a; }
December 28, 2018 at 7:09 am #767697Mathieu
Hi
I did the following and cleared my cache. I must have done something wrongDecember 28, 2018 at 7:26 am #767709David
StaffCustomer SupportI can see it working on the Images menu item hover. The home will remain a static color as that is the normal behaviour. Let me know.
December 28, 2018 at 8:04 am #767756Mathieu
Ah. When I land on the home page no items on the menu are lit up, but as soon as I scroll down both the home and the images items light up–together. I don’t want the images item to light up until I hit the images section, and when I hit this section I want the home menu 2 light off. That’s what I thought I was fixing with the code you sent, I don’t see what the code did actually. There was a bunch of code in simple css as soon as I downloaded it and activated it (which you can see in the initial screen shoot) I remember this with no apparent change either.
December 28, 2018 at 8:18 am #767782David
StaffCustomer SupportSorry my bad, thats quite tricky to do we recommend using a plugin like this:
https://wordpress.org/plugins/page-scroll-to-id/
It allows you to style the nav whilst consider on page links.
December 30, 2018 at 9:54 am #769297Mathieu
Ok thanks for your help. I just removed the link. To be honest this seems wrong. I’ve used other themes and never had this problem. But I don’t know much about this sort of thing so I’ll refrain from being judgmental. I love your theme. And your support was fast and helpful. So thanks for that!
December 30, 2018 at 11:35 am #769357David
StaffCustomer SupportIt is WP that adds a current-page / menu-item class to any anchors on the page, which causes the problem. I can only assume some Themes have included a function similar to the Page-scroll-to-id plugin to get around this.
Sorry i couldn’t be more help.
-
AuthorPosts
- You must be logged in to reply to this topic.