• Resolved skylerdynedge

    (@skylerdynedge)


    When I save a CSS class or ID to a widget under the Class & ID tab, the class or ID is not applied to the widget div. This is the same whether I manually add a class or choose one of my pre-defined classes. Has anyone else seen this happen and know how to resolve this?

Viewing 1 replies (of 1 total)
  • Thread Starter skylerdynedge

    (@skylerdynedge)

    I’ve found the solution to this issue. I’d registered my new sidebar in functions.php but I missed one crucial step. If anyone else is experiencing the same thing, be sure to properly define before_widget:

    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,

    I’d simply defined it as ‘<div class=”widget”> and was missing id=”%1$s” as well as ‘%2$s’ in class, resulting in none of the custom classes or IDs being added in the code.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom CSS IDs and Classes not working’ is closed to new replies.