Support » Fixing WordPress » Custom menu CSS class stripping

  • Hi,

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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


    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.

    You got it!!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom menu CSS class stripping’ is closed to new replies.