• jehojakim

    (@jehojakim)


    Hi,

    The site this is about has 5 items on the main menu, of witch item 1 and 3 have subitem(s). The third item has tow sub item, placed correctly.
    The first main item has one sub item, which is positioned too far to the left. It should be right aligned with the menu item it is a sub item from.

    I red a postin of two years ago, in which it was advised to use customized css code (Admin Panel > Appearance > Customize > Additional CSS field, add

    .navbar-right .dropdown-menu {
      left: 0;
      right: auto;
    }

    I used that, experimented a little with the left: and right: variables, reloaded the site every time, but nothing changes.

    Any ideas?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    In my browser inspection I was able to shift it to the right by doing the following:

    .main-navigation ul ul a {
        white-space: normal;
        width: 12.6875em;
    }
    
    Change it to:
    .main-navigation ul ul a {
        white-space: normal;
    } 

    Don’t edit the theme files directly, otherwise your changes will be overwritten whenever the theme is updated.

    A custom CSS editor (usually titled Additional CSS) is included in the Customizer as of WordPress 4.7 specifically for this purpose.

    As an alternative, especially if you intend to modify more than just CSS, create a child theme.

    Thread Starter jehojakim

    (@jehojakim)

    I do use a child theme already.

    Entering the code you suggest does not change the behaviour.

    As I stated in my opening, I entered that the way you mention too:
    Admin Panel -> Appearance ->; Customize -> Additional CSS field

    The parent theme is Twentysixteen, by the way; I should have mentioned that.

    • This reply was modified 4 years ago by jehojakim.
    Moderator t-p

    (@t-p)

    I recommend asking at the dedicated support forum of that theme at https://www.ads-software.com/support/theme/twentysixteen/?view=all

    Thread Starter jehojakim

    (@jehojakim)

    OK, thanks, I’ll do!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Submenu item too far left’ is closed to new replies.