Custom menu CSS class stripping (5 posts)

  1. moose123
    Posted 4 years ago #


    Running 3.2 multisite. One site is using custom menus. When I try to add a custom class to a menu item, it's stripping out the CSS meta characters, so this...

    #menu-item-1256 {background url:(image.gif);}


    menu-item-1256 backgroundurlimagegif

    I appreciate any suggestions.

  2. Rev. Voodoo
    Posted 4 years ago #

    are you putting that css into the menu class area?

    That would definitely not work

    You put the class in there.... if you wanted that item to be

    <li class="cheesecake">

    you would put cheesecake in the class, to output that in the source

    The css rules you have above go in style.css

  3. moose123
    Posted 4 years ago #


    Ok, I get it now. Yes, I was putting the CSS code into the class field. Ok, this makes sense now. I'll add the style to the CSS and just put the class name in the input field.

    Thanks a ton for cluing me in.

  4. Rev. Voodoo
    Posted 4 years ago #

    You got it!!

  5. ttj90
    Posted 4 years ago #

    May I ask what you did, I can't quite grasp it myself.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.