Support » Fixing WordPress » Custom CSS class for custom meniu item

  • Hello,
    just cannot understand how to use these CSS Classes (optional) through admin dashboard at custom menu section.
    I have added class name to CSS Classes (optional) field:
    menu2

    Then added such code to style.css:
    #catnav li.menu2 a {
    color: #A8D334;
    }

    and it’s not working. Any ideas why..?
    Didn’t find any explanations how to use that field – CSS Classes (optional).

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

    (@anevins)

    Forum moderator

    Using a browser inspector tool can you check whether your CSS is applying and being overridden?

    esmi

    (@esmi)

    Forum Moderator

    Site url?

    http://www.rusiuok.lt/ meniu item – BLOG’AS
    It looks like that this color is not appearing throught the “inspect element” function.
    Also tryied to add !important after color number..

    One more.
    In general my template has custom.css which is overriding style.css, so I have added this code to custom.css.
    Also in the code and in CSS Classes (optional) field I’m using class name:
    blogas

    Thanks in advance for help!

    esmi

    (@esmi)

    Forum Moderator

    I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s vendors.

    Also hjust tried to add this to style.css, but was not working…

    esmi, you mean that with normal theme such thing like I was trying should work..?

    esmi

    (@esmi)

    Forum Moderator

    Your CSS is theme-specific.

    Thanks, but you still didn’t answer my question.
    Is the way I’m trying to do that correct?

    To style.css I’m adding this:
    #catnav li.blogas a {
    color: #A8D334 !important;
    }

    And through the dashboard I’m marking CSS field like this:
    http://img593.imageshack.us/img593/3334/cssclass.jpg

    Such way should be working with non commercial theme?
    Thanks in advance..!

    Or can you just show me the link how to manage with that CSS Classes (optional) field in wordpress codex?
    I cannot find any explanations..

    esmi

    (@esmi)

    Forum Moderator

    We do not support commercial themes as you paid for support when you bought the theme. It is not our place to keep theme vendors in business or deprive them of any income that they may derive from support services.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Custom CSS class for custom meniu item’ is closed to new replies.