• Hi Anders,
    if I go to a submenu (on Desktop) the sub-sub-menu is shown on left. Is it possible to have this on the right?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @psonetz,

    Try adding the following CSS to Appearance → Customize → Additional CSS:

    .main-menu ul { text-align: right; }

    Let me know if it does the trick.

    — Anders

    Thread Starter psonetz

    (@psonetz)

    Hi Anders,
    no 🙁 I didn’t mean right-justified. Perhaps it’s easier to look at our site (on desktop)

    For example if you take the menu “Therapie”, the submenu “Medikamente” and then “Tabletten”… It disappears to the left and it would be readable if it would open to the right (I guess).

    Theme Author Anders Norén

    (@anlino)

    @psonetz Oh, I see! Sorry. Yes, Chaplin could definitely do with some better detection on what direction to open dropdown menus to when the horizontal menu is used. I’ll try to take a look at that some time this week.

    Thread Starter psonetz

    (@psonetz)

    Perfect 🙂 And thanks for your work!

    Theme Author Anders Norén

    (@anlino)

    Hi again @psonetz,

    I’ve included a solution for this in 2.5.3, which should be live during the day. When a sub menu is displayed, it determines whether to expand the sub level to the left or right, depending on available screen space in either direction.

    It can look a bit funky in some cases, since there’s a high risk of sub menus being displayed on top of each other when nested deep enough, but it’s preferable to them escaping the screen. Let me know how it works.

    — Anders

    Thread Starter psonetz

    (@psonetz)

    unfortunately it doesn’t work 🙁

    Theme Author Anders Norén

    (@anlino)

    @psonetz It looks like you have a caching plugin running. Try emptying the cache and see if it works then.

    Thread Starter psonetz

    (@psonetz)

    Even if I turn off the cache plugin the “menu fly” doesn’t change.

    Theme Author Anders Norén

    (@anlino)

    @psonetz That’s odd – I just confirmed it as working on the demo site, which is also running the latest version, but I can’t get it to work on your site either, despite the new JavaScript being in place. I’ll see if I can figure it out…

    Theme Author Anders Norén

    (@anlino)

    It seems like the JavaScript is triggered correctly on the focus event, but not the hover one. My best guess would be that some JavaScript on the page interferes with the hover event being triggered correctly, potentially by returning false on the hover event on some level. You could try disabling the plugins you have active and see if that resolves the issue.

    I made some adjustments to the feature in 2.5.4, which was just released. They shouldn’t have any impact on your issue (they fix some niggles when using it with keyboard navigation), but it never hurts to check.

    • This reply was modified 5 years, 10 months ago by Anders Norén.
Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Menu fly to right?’ is closed to new replies.