• 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)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

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

    Site url?

    Thread Starter vicius

    (@vicius)

    https://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..

    Thread Starter vicius

    (@vicius)

    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!

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

    Thread Starter vicius

    (@vicius)

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

    Thread Starter vicius

    (@vicius)

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

    Your CSS is theme-specific.

    Thread Starter vicius

    (@vicius)

    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:
    https://img593.imageshack.us/img593/3334/cssclass.jpg

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

    Thread Starter vicius

    (@vicius)

    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..

    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.