- This topic has 19 replies, 3 voices, and was last updated 7 years, 7 months ago by Tom.
-
AuthorPosts
-
September 4, 2016 at 2:47 pm #223829Steve
I’m still fighting anchor tags and trying to get them to scroll to the proper point. The Elementor folks don’t seem to see the problem that I and others have seen in that it scrolls 90px or so too far. I’m having better luck with a couple of plugins and I’ll get that solved eventually.
Anyway, that’s not the purpose of this request. My version of a “One-page” theme is actually a “two-page” theme. A classic one-pager and a blog page. Seems to make sense – at least to me!
My test site is here:
The scroll to anchor works – sort of – for the Contact, About Us, and Locate Us links. If I go to the Blog page, those items are totally inert – nothing happens. The Home button does work.
I’m rather sure this falls into the Mills – You Idiot category, but I’m stumped. What am I missing?
Thanks
PS Tom – I know you are working on some Premium themes. I, for one, would be most willing to purchase a quality one-pager wthh dot nav etc.
September 4, 2016 at 11:23 pm #223890TomLead DeveloperLead DeveloperThat’s strange, the fact that you’ve linked to the home page with the # should make it work regardless of the page you’re on.
What happens when you remove the code you have in the wp_footer hook? Still doesn’t work?
A one pager theme is definitely on the menu π
September 5, 2016 at 9:59 am #224008SteveThanks, Tom
The code in the wp_footer hook seems to be at the root cause. I’m still having issues with where it lands, but, at least” it’s going back to the right page. (FWIW this is the code you pointed me to for resolving the menu getting “stuck” down on mobile. I haven’t worked on mobile here, so not sure if that is still an issue.)
Hoping this is still on topic – if I change the hover color to red, only the “Blog” item changes when I go over it. After using on of the other items, it changes after the scroll. Plugin issue?
September 5, 2016 at 2:08 pm #224049LyleHi Steve,
For the scroll to location along with correct active menu item highlighting, perhaps take a look at a video I put together on the subject of a one page web site as you are wanting to achieve. I haven’t tried this with GP with it’s own sticky menu, so you may not need the plugin mentioned that does that part.
And here is a site that I build that uses this method:
I am going to work on trying this method with GP and Elementor and will post back when I get it working π
Cheers!
LyleSeptember 5, 2016 at 10:36 pm #224129TomLead DeveloperLead DeveloperThanks, Lyle!
Hoping this is still on topic β if I change the hover color to red, only the βBlogβ item changes when I go over it. After using on of the other items, it changes after the scroll. Plugin issue?
Not too sure what you mean by this – can you show me?
September 6, 2016 at 8:22 am #224268SteveLyle – What a good site! At this point, Dynamik and BB are a little beyond my budget. To be greedy – I kind of like dot navigation, but nothing critical. Anxious to see your results with Elementor and GP. Steve
Tom – Try this – I have the menu hover color set to red. If you pass the mouse over the menu items, only the “Blog” item actually changes color. If, you click the “Contact” item, for instance, it will scroll to that anchor and then change to red. Is that what I should expect?
Thanks…..
SteveSeptember 6, 2016 at 10:32 am #224334TomLead DeveloperLead DeveloperAh, that’s because all of the other menu items are current menu items.
You can set this manually like this:
.main-navigation .main-nav ul .current-menu-item > a:hover { background: red; }
September 6, 2016 at 2:57 pm #224462SteveOK – Looking up. Since I removed the code in wp_footer, the menu sticks down as it did originally.
Any options here?
Steve
September 6, 2016 at 8:07 pm #224529TomLead DeveloperLead DeveloperIs this the code?: https://gist.github.com/generatepress/6e122667d28cabd23582
I just re-tested it and didn’t get any errors.
Can you try re-adding it?
September 7, 2016 at 8:35 am #224671SteveI re-added the code and I get back to my original issue. If I go the the “Blog” page, I cannot link back to the original page with any menu item except “Home”. The others Contact” etc just do nothing. The link is still:
Steve
September 7, 2016 at 9:38 am #224694TomLead DeveloperLead DeveloperI just updated the code, can you try it now?
September 7, 2016 at 10:07 am #224711SteveTom,
I put in the new code and the links back to the home page still don’t work. I believe I cleared all caches and double checked that the latest revisions were there.
Steve
September 7, 2016 at 10:18 am #224714TomLead DeveloperLead DeveloperJust made another adjustment.
We’ll get there π
September 7, 2016 at 11:01 am #224739SteveThat seems to work!!
I haven’t tested the close menu code, but that should work.
I’ll let you know if there are any issues.
Thanks…….
SteveSeptember 7, 2016 at 11:01 am #224740TomLead DeveloperLead DeveloperYou’re welcome π
-
AuthorPosts
- You must be logged in to reply to this topic.