Title: Change Wrapper Class via Shortcode
Last modified: August 20, 2016

---

# Change Wrapper Class via Shortcode

 *  Resolved [Break5](https://wordpress.org/support/users/break5/)
 * (@break5)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/change-wrapper-class-via-shortcode/)
 * great plugin!
 * is it possible to change the wrapper class, not only the wrapper tag for the 
   current shortcode?
 * like div.aside oder wrapper_class=”aside”
 * [display-posts post_type=”page” wrapper=”div.aside”]
 * Page content
 * [display-posts post_type=”page” wrapper=”div.anotherclass”]
 * as you may recognize, I want to build a home layout which can be modified via
   the wordpress text editor instead of changing the template.
 * [http://wordpress.org/extend/plugins/display-posts-shortcode/](http://wordpress.org/extend/plugins/display-posts-shortcode/)

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

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/change-wrapper-class-via-shortcode/#post-3446036)
 * Using just the shortcode, no, you cannot customize the CSS classes of the wrapper.
   But you can create a custom output filter to do so. See some of the examples 
   here: billerickson.net/code-tag/display-posts-shortcode
 * Writing the code for you is outside the scope of the free support provided here.
 *  Thread Starter [Break5](https://wordpress.org/support/users/break5/)
 * (@break5)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/change-wrapper-class-via-shortcode/#post-3446038)
 * thanks!

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

The topic ‘Change Wrapper Class via Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Break5](https://wordpress.org/support/users/break5/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/change-wrapper-class-via-shortcode/#post-3446038)
 * Status: resolved