• While I appreciate that new features often require changes, it’s frustrating to have to redevelop the customization I’ve done when the plugin is updated. In one of the previous updates, a new element was introduced between the title and the menu. In another recent update, a new container element was added around the menu ul. Changes like this often break layouts that users have created.

    • This topic was modified 4 years, 5 months ago by awtd.
    • This topic was modified 4 years, 5 months ago by awtd.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi awtd,

    Thanks for writing us and sorry to hear about the trouble you’re having with new updates. I can assure you that we test new updates on existing sites and not just on new installs, so we’re usually able to keep track of anomalies like this, which might happen.

    Is this because you had some custom CSS that you added, but which is no longer being applied? I imagine there was probably some customization on your end, for it to be something we didn’t notice on our end during testing.

    Would you be able to share a screenshot and point out the elements that got messed up after the update? If you could also share a link to your page, I could hopefully suggest some CSS to help with any styling issues you’re facing.

    Thank you!

    Thread Starter awtd

    (@awtd)

    In my case it was javascript. I used the html layout the plugin provides to make menus open/close when their header is clicked. Because the header is separate from the menu, I had to do some traversal of the DOM to find the menu (selecting the header, then finding the next element with the appropriate class). When another element was introduced between the header and the menu, I had to adjust; when the menu was wrapped in a container element, I had to adjust again.

    One thing that would be really helpful on this would be the ability to add user-specified classes to headers and menus, e.g. a “header class” field and a “menu class” field (same for all of the related elements, such as the filter that was added). That would make customization and javascript manipulation much easier, and largely futureproof, because we wouldn’t have to rely on DOM traversal to select elements. I could give my dinner header the “menu-header-dinner” class and my dinner menu ul the “menu-body-dinner” class. That way when I click the menu header, I can use string manipulation to pull “menu-header-xxx” out of the header element’s classes and search the DOM for the class “menu-body-xxx”. Future updates to the html structure wouldn’t affect the script’s functionality.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Menu html structure changing with updates’ is closed to new replies.