- This topic has 9 replies, 3 voices, and was last updated 3 years, 7 months ago by
Tom.
-
AuthorPosts
-
September 28, 2018 at 3:35 pm #688968
Alfonso
Hi guys
So I have a one page scroll navigation, but some of the links open in a new window (the link I refer to is called ‘Mi historia’ in case you visit my website to see what i’m telling you about). And the problem is this; in the new open window, the navigation still shows the one page links, but doesn’t do anything if you click them (as there’s no anchor in that page to go to).
So, is there a way to return to a certain section in the frontpage from another window, so I can keep my navigation as it is?
Is there anything else I can do?GeneratePress 2.1.4GP Premium 1.7.2September 28, 2018 at 5:59 pm #689033David
StaffCustomer SupportHi there,
use a full URL for you’re one page links e.g: https://www.anonymous.org/#faq
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 29, 2018 at 4:26 am #689241Alfonso
That worked well, thanks.
But it seems to be another problem now, the links from the one page doesn’t have the hover effect (although they work) and when I go to any of them (there are only two), both of them appears highlighted. I’m using the Page to scroll id plugin by the way.September 29, 2018 at 10:49 am #689491Tom
Lead DeveloperLead DeveloperYou’d need to set your current menu item background color to the same background color as the navigation in Customize > Colors > Primary Navigation.
Then use this CSS to change the background color of the highlighted section:
.main-navigation .main-nav ul li > a.mPS2id-highlight { background: #777; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 29, 2018 at 11:26 am #689518Alfonso
Done. That solved part of the problem, but the hover effect still missing…
September 29, 2018 at 6:31 pm #689680Tom
Lead DeveloperLead DeveloperGive this a shot:
.main-navigation .main-nav ul li[class*="current-menu-"]:hover > a, .header-wrap #site-navigation:not(.toggled) .main-nav > ul > li[class*="current-menu-"]:hover > a { background-color: #777; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 30, 2018 at 1:37 pm #690164Alfonso
Now the sticky menu works perfectly, but not the main one (the one on the top). Perhaps I should’ve mention earlier that I created the main header with a GP element. Does that affect it somehow?
September 30, 2018 at 10:30 pm #690336Tom
Lead DeveloperLead DeveloperI just adjusted the CSS above: https://generatepress.com/forums/topic/one-page-scroll-combined-with-regular-navigation/#post-689680
Let me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 1, 2018 at 3:38 am #690506Alfonso
Okay that finally solved my problem! Thank you so much!
October 1, 2018 at 10:27 am #690873Tom
Lead DeveloperLead DeveloperYou’re welcome ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.