Title: Specify a CSS class in the shortcode
Last modified: December 10, 2023

---

# Specify a CSS class in the shortcode

 *  Resolved [Roger](https://wordpress.org/support/users/erpol53/)
 * (@erpol53)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/attribute-a-css-class-in-the-shortcode/)
 * Hi,
 * I’d like to use your plugin in different locations in my site, but for that I’d
   need to be able to style them differently, and right now any CSS changes are 
   applied uniformly to all carousels or sliders of the same design.
 * I suppose there’s no way to specify a CSS class directly in the shortcode, or
   did I miss that ? It would be nice for a future release!
 * Thanks,
   RP
    -  This topic was modified 2 years, 4 months ago by [Roger](https://wordpress.org/support/users/erpol53/).

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

 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/attribute-a-css-class-in-the-shortcode/#post-17267166)
 * Hello,
 * Thanks for reaching out to us…
 * If you using our shortcode. Our plugin is available with the “extra_class” parameter
   so please use an “extra_class” parameter.
 * for Example: [recent_post_slider extra_class=”your class here”]
 * Please refer to the below screenshot and set your CSS class.
 * [https://prnt.sc/Y6W6znBjaQ6o](https://prnt.sc/Y6W6znBjaQ6o)
 *  Thread Starter [Roger](https://wordpress.org/support/users/erpol53/)
 * (@erpol53)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/attribute-a-css-class-in-the-shortcode/#post-17267545)
 * Hi,
 * That’s great, thanks! I didn’t see this, because it’s not listed in the shortcode
   parameter list of the plugin’s description (free version).
 * Anyway, it does completely solve my problem. I need this because I use CSS extensively
   to style the carousel and slider.
 * Thank you!
   RP
    -  This reply was modified 2 years, 4 months ago by [Roger](https://wordpress.org/support/users/erpol53/).
 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/attribute-a-css-class-in-the-shortcode/#post-17276596)
 * Hello,
 * If you like our plugin please give us an important Rate and Review it Here…
 * [https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/reviews/](https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/reviews/)

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

The topic ‘Specify a CSS class in the shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-responsive-recent-post-slider_9c9a9b.
   svg)
 * [WP Responsive Recent Post Slider/Carousel](https://wordpress.org/plugins/wp-responsive-recent-post-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/reviews/)

## Tags

 * [css-class](https://wordpress.org/support/topic-tag/css-class/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/attribute-a-css-class-in-the-shortcode/#post-17276596)
 * Status: resolved