Spaces in menu
-
The search doesn’t seem to be working, so I am sorry if this is a duplicate issue.
The main menu on storefront has hardcoded space characters in between each
<li>
item.This creates an undisirable margin inbetween each menu item on my child theme.
I have two solutions to this. One requires javascript to remove the spaces using a regex.
The other uses CSS to put a negative margin on each menu item to hide the space.
Both seem pretty hacky, as they only take effect after the page has loaded so the spaces appear during the page load.
I am hoping for an explanation as to why these hardcoded spaces are there to begin with, and for a better solution for removing them from my storefront child theme.
- This topic was modified 5 years, 11 months ago by . Reason: HTML formatting corrected, please put all code in code tags
- This topic was modified 5 years, 11 months ago by . Reason: HTML formatting corrected, please put all code in code tags
The page I need help with: [log in to see the link]
- The topic ‘Spaces in menu’ is closed to new replies.