WordPress.org

Forums

Openstrap
[resolved] How to change colour of menu buttons background? (7 posts)

  1. duozhang1992
    Member
    Posted 1 year ago #

    Hi I was wondering if anyone knew how to change the default colour covering the menu text(mine is purple at the moment)?

    I want to change it from purple to orange.

    Thanks!

  2. Kristina
    Member
    Posted 1 year ago #

    Hello,

    you can type a css code in Appearance/Editor (scrloll down the page and find css file)

    Please give me a link of your page and I write code.

    Cheers!

  3. duozhang1992
    Member
    Posted 1 year ago #

  4. Kristina
    Member
    Posted 1 year ago #

    Hello duozhang1992,

    code is:
    .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background-color: #633475;}

    If you wont some other purple color you can change this hexadecimal color: #633475

    I hope thet I help you.

    Cheers!

  5. batharoy
    Member
    Posted 1 year ago #

    You should not use the Appearance > Editor method unless you have a child-theme activated. Those edits will be erased if the theme is updated.

    That being said you can create a child-theme or use a custom css plugin like Simple Custom CSS.

  6. duozhang1992
    Member
    Posted 1 year ago #

    There wasn't a CSS file in editor of openstrap. I also tried typing the code into custom codes but that didn't work either.

    Do you know why this might be?

  7. duozhang1992
    Member
    Posted 1 year ago #

    Its okay, I managed to figure out how to do it through custom CSS. Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.