- This topic has 17 replies, 3 voices, and was last updated 3 years, 7 months ago by
Ying.
-
AuthorPosts
-
January 24, 2022 at 5:53 am #2091620
_blank
Hi there,
‘Solo’ is a one-page theme, however, it is capable of hosting other pages. For example, in the ‘latest news’ section there’s previews of what would be other pages / posts. They aren’t live on the demo site, but presumably this means it’s fine to create other pages, even on a ‘one page’ theme.
My question is, once someone is on another page, how does navigation work? The top menu, by default, is made to navigate the homepage only via # anchors. We can update the menu to include the entire site URL to direct people back to the homepage and then the anchor section. For example, instead of #latest-news, it’d be mywebsitedomain.com/#latest-news.
Is that best practice? Any SEO considerations, or alternative ways of doing it?
Many thanks
January 24, 2022 at 6:41 am #2091677David
StaffCustomer SupportHi there,
yes thats correct you would need to edit the Menu items to include the
domain.com/#jump-link
– i don’t think there is an alternative method of doing it without throwing JS at it or displaying a different menu on your other pages.January 24, 2022 at 6:51 am #2091692_blank
Thanks. Just one issue:
When using # anchor, the text in the top menu was white and very readable against the background.
Having updated all menu items to hyperlinks, they are now obeying the global hyperlink colour, which is not so readable, as you can see by the image.
We want to keep the current background colour for the menu, but can’t see how to override the colour for menu links only?
Many thanks
January 24, 2022 at 7:36 am #2091740David
StaffCustomer SupportThey are probably attracting the Current Menu item color in Customizer > Colors –> Primary Navigation.
January 24, 2022 at 7:45 am #2091754_blank
That doesn’t seem to be the case. There’s 3 colour options we can change, but they only seem to affect the colour once scrolled down, and the menu bar has changed colour.
Something about changing the menu links from #anchors to full hyperlinks is forcing the colour.
January 24, 2022 at 11:00 am #2092141Ying
StaffCustomer Supportbut they only seem to affect the colour once scrolled down,
Yes, that’s correct. The original primary navigation color is set in the Header element, you can find it at Appearance > Elements.
January 25, 2022 at 2:48 am #2092709_blank
Thanks – we’ve managed to update the standard appearance from there, but now we can’t seem to edit the ‘hover’ appearance for the menu when scrolled down. It’s just remaining the same colour when hovering.
January 25, 2022 at 5:05 am #2092849David
StaffCustomer SupportCan you share a link to the site so we can see where that color is coming from ?
January 25, 2022 at 5:23 am #2092870_blank
You still have admin access (see private info).
January 25, 2022 at 10:40 am #2093427Ying
StaffCustomer SupportThe admin access need username and password, so we are not able to log in to see your site.
Sounds like the menu items are using the current color as they are HTML anchors of this page. So the hover color is overridden by the current color.
In this case, CSS is needed.
Can you provide login details using private info field so we can take a look?
January 25, 2022 at 10:55 am #2093445_blank
Apologies, you have access from a previous ticket, but of course you won’t have saved the login. Please check your email for pw reset link.
January 25, 2022 at 12:41 pm #2093553Ying
StaffCustomer SupportSo it is the situation I described here: https://generatepress.com/forums/topic/menus-for-one-page-themes-with-other-pages/#post-2093427
You can try this CSS to override the
current
color..main-navigation .main-nav ul li[class*="current-menu-"]:hover > a { color:#000000; }
January 26, 2022 at 6:21 am #2094273_blank
Solved, thanks!
January 26, 2022 at 9:48 am #2094748Ying
StaffCustomer SupportNo problem 🙂
February 8, 2022 at 10:25 am #2109801_blank
Sorry to reopen, but just noticed our top menu is behaving differently on pages / posts. Homepage is fine and as expected, but on pages / posts it’s producing strange colours on hover. Hopefully you can point out how to have it behave the same everywhere.
Many thanks
-
AuthorPosts
- You must be logged in to reply to this topic.