Title: Feature request: css class on no_posts_message
Last modified: February 20, 2021

---

# Feature request: css class on no_posts_message

 *  [turbodb](https://wordpress.org/support/users/turbodb/)
 * (@turbodb)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/feature-request-css-class-on-no_posts_message/)
 * Loving this plugin, and have been using it for years now. I wonder if I’m just
   missing a feature, or if this is one you could add…
 * I currently have the following shortcode:
 * `[display-posts tag="mid-winter-mojave" image_size="large" include_excerpt="true"
   wrapper="div" wrapper_class="display-posts-listing-grid" posts_per_page="20" 
   columns="1" include_date="false" date_format="M j, Y" order="ASC" orderby="date"
   no_posts_message="Let's not get ahead of ourselves, this trip is coming soon...
   Consider subscribing to be notified when it's here!"]`
 * Works great. Mostly.
 * When there are no posts to show, it shows the no_posts_message, but shows it 
   in a simple `<p>` and there’s no way to style it. the wrapper and wrapper_class
   can’t be used, because they are not output.
 * It’d be great if the no_posts_message had a class set on the element, or a way
   to set such a class using another attribute (perhaps no_posts_message_class or
   some such).
 * Thanks!

The topic ‘Feature request: css class on no_posts_message’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [turbodb](https://wordpress.org/support/users/turbodb/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/feature-request-css-class-on-no_posts_message/)
 * Status: not resolved