How can I display the sub-menus to the right?

How can I display the sub-menus to the right?

Thank’s

ksolucionesi.com

Hi,

On your website I do see sub-menus added and they are to the right, or the website you’ve posted isn’t yours? You can add submenus to your main menu in wp-admin -> Appearance -> Menus, drag the menu items you want to be sub-menu items below the parent menu items ( drag them to the right, so they’ll become sub-menu items ).

Kind Regards,
Csaba

Thank you
but I would like the submenus to be deployed to the opposite side, since
some can not be displayed.

Hi,

You can make the sub-menu to open to left instead of right with this Custom CSS:

#mainnav ul li ul.sub-menu {
    left: auto !important;
    right: 0 !important;
}

#mainnav ul li ul.sub-menu li ul.sub-menu {
    right: 180px !important;
    left: auto !important;
}

Please add the above CSS to your Child Theme’s style.css or in case you haven’t setup a Child Theme already, then you can also add the CSS to wp-admin -> Appearance -> Customizer -> Additional CSS so you won’t loose the changes after Theme or WordPress updates.

Please let me know how it works.

Kind Regards,
Csaba