Title: [Plugin: Twitter Widget Pro] Css Classes not applying.
Last modified: August 20, 2016

---

# [Plugin: Twitter Widget Pro] Css Classes not applying.

 *  Resolved [Roggers](https://wordpress.org/support/users/roggers/)
 * (@roggers)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-twitter-widget-pro-css-classes-not-applying/)
 * Hey guys. SO basically, I’m trying to style TWP with the same selectors used 
   in the faq.
    However, none of the styles are applying. I looked in firebug and
   it seems no such class
 * > .widget_twitter
 *  exists in the html.
 * How can I fix this?
 * Thanks
 * [http://wordpress.org/extend/plugins/twitter-widget-pro/](http://wordpress.org/extend/plugins/twitter-widget-pro/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Aaron D. Campbell](https://wordpress.org/support/users/aaroncampbell/)
 * (@aaroncampbell)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-twitter-widget-pro-css-classes-not-applying/#post-3016168)
 * Probably means your theme doesn’t declare it’s sidebars properly. Can you link
   to your site as well as your theme?
 *  Thread Starter [Roggers](https://wordpress.org/support/users/roggers/)
 * (@roggers)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-twitter-widget-pro-css-classes-not-applying/#post-3016169)
 * [http://alexrodrigues.co.uk/](http://alexrodrigues.co.uk/) it’s my custom theme
   
   Here is the code for sidebar deceleration in functions.php
 *     ```
       if ( function_exists( 'register_sidebar' ) ) {
       register_sidebar( array (
       'name' => __( 'Primary Sidebar', 'primary-sidebar' ),
       'id' => 'primary-widget-area',
       'description' => __( 'The primary widget area', 'dir' ),
       'before_widget' => '<div class="col2 widget">',
       'after_widget' => "</div>",
       'before_title' => '<h3 class="widget-title">',
       'after_title' => '</h3>',
       ) );
       ```
   
 *  Plugin Author [Aaron D. Campbell](https://wordpress.org/support/users/aaroncampbell/)
 * (@aaroncampbell)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-twitter-widget-pro-css-classes-not-applying/#post-3016291)
 * Thanks. The before_widget part should have an id of %1$s (to be replaced with
   the id of the widget) and a class of %2$s to be replaced with the class for the
   widget (in this case widget_twitter). So try something like this:
 *     ```
       register_sidebar( array (
       	'name' => __( 'Primary Sidebar', 'primary-sidebar' ),
       	'id' => 'primary-widget-area',
       	'description' => __( 'The primary widget area', 'dir' ),
       	'before_widget' => '<div id="%1$s" class="col2 widget %2$s">',
       	'after_widget' => "</div>",
       	'before_title' => '<h3 class="widget-title">',
       	'after_title' => '</h3>',
       ) );
       ```
   
 *  Thread Starter [Roggers](https://wordpress.org/support/users/roggers/)
 * (@roggers)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-twitter-widget-pro-css-classes-not-applying/#post-3016407)
 * Thanks, it worked! I’ll be sure to use this method when declaring sidebars.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Twitter Widget Pro] Css Classes not applying.’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/twitter-widget-pro_eaeae4.svg)
 * [Twitter Widget Pro](https://wordpress.org/plugins/twitter-widget-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/twitter-widget-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/twitter-widget-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/twitter-widget-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/twitter-widget-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/twitter-widget-pro/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Roggers](https://wordpress.org/support/users/roggers/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-twitter-widget-pro-css-classes-not-applying/#post-3016407)
 * Status: resolved