WordPress.org

Ready to get started?Download WordPress

Forums

How do I change the colour of my dropdown menus?! Please help! (4 posts)

  1. Rob_77
    Member
    Posted 4 years ago #

    Hi there. Apologies if you have already seen the question here added to the end of another similar post.

    I'm totally new to WordPress and have managed to get a site up and running at the following address:

    http://www.uno-marcomms.com/wordpress.1/

    However I'm struggling to find where I can modify the colour of the nested dropdown menus? At the moment the colour seems to be referencing the background. I'd like to be able to change the background colour and the font colour.

    A second problem is that the nav is currently in alphabetical order and I don't know how to change the order around.

    I'm really new to code and PHP so any advice would be fantastic!!!

    Thanks :-)

  2. Taylor Dewey
    Member
    Posted 4 years ago #

    in your css file, look for:
    #menu li li { background-color:#1A1E6B; }

    You can change that to meet your needs.

    The second problem depends entirely on how the menu is set-up, we would need some code to be able to debug that for you. Likely it's an argument in the PHP function wp_list_pages()

  3. Taylor Dewey
    Member
    Posted 4 years ago #

    And the color of the font is also in your CSS:

    #menu .current_page_item li a, #menu .current-cat li a { color:#333; }

  4. Rob_77
    Member
    Posted 4 years ago #

    Thanks for your help with this. Much appreciated!

    I'm using the Constructor theme for this website, and there don't actually appear to be any colour references in the style.CSS in the editor. However I used the piece of code you suggested in the Customize - CSS section and it worked great!:-)

    I tried using the second piece of code in there too, but it only changes the colour of the font in the dropdown for the current page. What would I have to do to change the font colour in all dropdowns???

    Also what should I do regarding the wp_list_pages() issue? Is there anything I can supply that would give you a few more clues?

    Once again, thanks for your time!

Topic Closed

This topic has been closed to new replies.

About this Topic