Title: Container Class
Last modified: August 22, 2016

---

# Container Class

 *  Resolved [Andy Leppard](https://wordpress.org/support/users/andyleppard/)
 * (@andyleppard)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/container-class/)
 * Hi Justin – I absolutely love this plugin, but I’d really like to be able to 
   set a class for the containing element.
 * I currently get to target:
    `<div id="query-posts-n" class="widget posts">`
 * I would like to be able to target:
    `<div id="query-posts-n" class="widget posts
   myclass">`
 * [https://wordpress.org/plugins/query-posts/](https://wordpress.org/plugins/query-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Andy Leppard](https://wordpress.org/support/users/andyleppard/)
 * (@andyleppard)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/container-class/#post-5227552)
 * My solution was simply using a plugin to get the classes into the container:
   
   [https://wordpress.org/plugins/widget-css-classes/](https://wordpress.org/plugins/widget-css-classes/)
 * It’s more flexible than my request to modify this plugin.

Viewing 1 replies (of 1 total)

The topic ‘Container Class’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/query-posts.svg)
 * [Query Posts](https://wordpress.org/plugins/query-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/query-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-posts/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [Andy Leppard](https://wordpress.org/support/users/andyleppard/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/container-class/#post-5227552)
 * Status: resolved