• Resolved dfart

    (@dfart)


    Good afternoon:

    I have a web page in WordPress where I use the plugins “qtranslate” to change the language and “Dropdown Menu” so that a submenu appears below the main menu.

    My problem is that in the other languages the menu and the submenu are aligned but when using the Italian language the submenu is off center.

    I have added the following line to the file style.css “.menu_it” .shailan-dropdown-menu ul li ul {margin left: 18px} “so that when I put my website in Italian I will pick up that style and center the sub-menu.

    I do not pick up the style that I mentioned before because if I use the browser inspector does not show that it is taking that style. With the other languages that style appears.

    I am writing to you to ask how I could assign that language to my plugin or to my theme so that when I put the value in the file style.css I will pick it up and center my submenu.

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    We can only really help with these problems if we can see the website.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try this solution instead:

    
    html .menu_principal {
        position: relative;
    }
    
    html .shailan-dropdown-menu,
    html ul.dropdown li {
        position: static;
    }
    
    html .shailan-dropdown-menu ul li ul {
        left: 0;
    }
    
    html .menu_en .shailan-dropdown-menu ul li ul {
        margin: 0;
    }
    

    This should work for all languages.

    • This reply was modified 6 years, 12 months ago by Andrew Nevins.
    Thread Starter dfart

    (@dfart)

    Thank you very much for your reply.

    I have tried to do it in the test environment that I have enabled and it has worked for me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dropdown Menu’ is closed to new replies.