Custom CSS Misaligning Navigation Menu on WordPress.com Site Across Themes
-
I’m facing an issue with custom CSS on my WordPress.com basic plan site. My navigation menu (header, primary menu) is misaligned—items overlap or shift right—after applying custom CSS for font size and spacing. It persists across themes (tested Twenty Twenty-Four). Environment: Chrome 126, Windows 11, no plugins added.
Steps tried:
- Cleared browser cache and tested incognito mode.
- Removed custom CSS in Customizer > Additional CSS; issue resolved but styling lost.
- Checked for conflicting CSS classes using Chrome DevTools.
- Ensured responsive settings in Customizer are default.
My CSS snippet: .primary-menu { font-size: 18px; margin-right: 20px; } .nav-item { padding: 10px; }
Could this be a theme conflict or CSS specificity issue? Any tips for debugging or writing cleaner CSS to fix the menu alignment? Your insights would be invaluable! 😊
Best, Sophia
The blog I need help with is: (visible only to logged in users)
- The topic ‘Custom CSS Misaligning Navigation Menu on WordPress.com Site Across Themes’ is closed to new replies.