- This topic has 10 replies, 2 voices, and was last updated 3 years, 10 months ago by
Tom.
-
AuthorPosts
-
June 1, 2017 at 5:39 am #327128
Raymond
Hi Tom,
I’m developping a site at http://dev.branoul.nl. I recently discovered that the main menu is acting strange when resizing the browserwindow. At first I thought this behaviour was due to some CSS edits I made, but after reverting to a previous version of the site I noticed the strange menu-resize bug stayed.
Steps to replicate are:
– Maximize the browserwindow
– Refresh http://dev.branoul.nl
– Unmaximize the browserwindows -> the main menu resizes too small but centered
– Refresh http://dev.branoul.nl -> the main menu is allright again
– Resize the browserwindow -> the main menu erroneously stays left-aligned
– Refresh http://dev.branoul.nl -> the main menu is allright againThis behaviour is consistent on all pages, so there’s probably no page specific CSS involved.
Can you find out if this is due to GeneratePress CSS?
Regards,
RaymondGeneratePress 1.3.46GP Premium 1.3June 1, 2017 at 10:28 am #327257Tom
Lead DeveloperLead DeveloperStrange, can you try adding this?:
.main-navigation.grid-container { margin-left: auto !important; margin-right: auto !important; }
Looks like a bug with the sticky menu – I’ll look into a fix.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 1, 2017 at 11:21 am #327293Raymond
Hi Tom,
That resolves it for the menu. Scrolling down, however, the menu moves to the right now…
Regards,
RaymondJune 1, 2017 at 11:41 am #327302Raymond
Further investigation shows the menu moves to the right when the browserwidth is greater than 1140px. Removing margin-left: auto !important from .main-navigation.grid-container then centers the menu.
June 2, 2017 at 12:23 am #327549Tom
Lead DeveloperLead DeveloperAny chance I can send you an updated version to test? If so, shoot me an email: https://generatepress.com/contact/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 2, 2017 at 1:24 am #327563Raymond
Yes, please. I sent the reply via an ‘account issue post’ on your contact page. Couldn’t find a mail address π
June 2, 2017 at 8:02 am #327679Raymond
Hi Tom,
I think I found the problem. I use the plugin SiteOrigin CSS to make CSS editing somewhat easier. When I disable this plugin the menu problem is gone. I think I will revert to adding an external CSS file with a custom hook.
Regards,
RaymondJune 2, 2017 at 10:32 am #327746Raymond
I’m really confused now…
I disabled SiteOrigin CSS and found that the problem returned. Then I downloaded your latest GP version from GitHub and it seemed to work, but later…it didn’t. I guess the browsercache is fooling me. So I tried it on a different computer. The last status is:
– The site is running the latest GP version from GitHub
– I removed SiteOrigin CSS
– The problem still exsistsI hope you can make sense of this.
Regards,
RaymondJune 2, 2017 at 4:19 pm #327869Tom
Lead DeveloperLead DeveloperI just sent you the latest to upload.
Let me know if it fixes it π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 4, 2017 at 1:32 am #328283Raymond
Hi tom,
The lastest version works perfectly. For the benefit of my learning, what did you change?
Thanks and regards,
RaymondJune 4, 2017 at 10:06 am #328442Tom
Lead DeveloperLead DeveloperI just made some adjustments to how the sticky nav calculates things π
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.