• Resolved fotmich

    (@fotmich)


    The theme looks great, I got everything working like I want it, HOWEVER I added a new page (in my case, the Impact Overview sub-page from the About Us page) and the drop down menus all word wrap to one word per line. EVERY other page on the entire site is correct, but this ONE page does this weird word-wrap thing with every drop down. Click on any other page… Problem disappears. For example, check out the drop downs on this page (which is representative of the entire site)…

    https://fot.org/wp/about-us/research-funded-by-festival-of-trees/

    And now look at the drop-down menus on this one:

    https://fot.org/wp/about-us/impact/

    Ideas?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey @fotmich

    I noticed the the dropdown menus in question (on the Impact Overview page) have padding around it. Please see my screenrecording: https://cloudup.com/cmWExE4NKV1

    I assume the Impact Overview page is sharing the same template as the other pages below ‘About Us’? That is why it is so odd that it appears differntly.

    Have you tried assigning a different template to the Impact Overview page, refresh and re-assigning the correct template?

    Have you added any new plugins before adding the Impact Overview page?

    Thread Starter fotmich

    (@fotmich)

    Thanks for looking at this. I watched your video and it’s strange, because the pages are using the exact same template. I have added several commerce plugins between building the initial site and building the Impact page, but none that I think would have affected general formatting. I did try to change to a different template and back, but still no joy…

    Hey @fotmich

    The styles I can see affecting the menu on that page are added inline to the page. It is possibly the function of Gutenberg that only includes styles for elements when they are needed.

    So in this case – the page content contains a bulleted list, so I?think?it’s including the additonal style that adds the padding to list items in the menu?because?there’s a list in the content.

    You could try to either remove the list from that page as a test or not dispplaying the content with the List block. Or try adding a list to another page to see if the same issue occurs.

    Moderator jordesign

    (@jordesign)

    it looks like this is a known bug with the editor at the moment – something that should be getting worked on.

    https://github.com/WordPress/gutenberg/issues/50486

    In the meantime – you can add the code below to your site’s CSS following these instructions.

    /* unset padding on the navigation block */ 
    .wp-block-navigation ul {
        padding: unset;
    }

    Thank you very much @jordesign

    Thread Starter fotmich

    (@fotmich)

    That did the trick! Thanks everyone!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Word Wrap on Drop Down Menus’ is closed to new replies.