Support » Plugin: Posts in Sidebar » Custom CSS class?

Viewing 1 replies (of 1 total)
  • Plugin Author aldolat


    Open the functions.php file of your current theme and look for the function that creates the sidebar. For example, in the Twenty Twelve theme you should look for this:

    function twentytwelve_widgets_init() {

    Inside this function change this line:

    'before_widget' => '<aside id="%1$s" class="widget %2$s">',


    'before_widget' => '<aside id="%1$s" class="widget my-class %2$s">',

    I added my-class, obviously you’ll type the class you need.

    Note that this will change the wrapper of every widget.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom CSS class?’ is closed to new replies.