Title: Adding custom classes
Last modified: August 20, 2016

---

# Adding custom classes

 *  Resolved [blitz999](https://wordpress.org/support/users/blitz999/)
 * (@blitz999)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-custom-classes/)
 * The excerpt/post etc. could really do with a custom class or wrapper to identify
   each section. For example, I’m attempting to hide/reveal on hover the excerpt,
   but because there is no wrapping div or span, it is impossible to do (I tried
   addressing the post p, but some posts don’t start with this.
 * Is there some way to add a div around the post excerpt/text content?
 * [http://wordpress.org/extend/plugins/posts-in-page/](http://wordpress.org/extend/plugins/posts-in-page/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Eric Amundson](https://wordpress.org/support/users/sewmyheadon/)
 * (@sewmyheadon)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-custom-classes/#post-3229377)
 * blitz999,
 * You can customize the output template to your heart’s content.
 * From the [FAQ](http://wordpress.org/extend/plugins/posts-in-page/faq/):
 * > **How do I change the output template**
   >  Simply copy the posts_loop_template.
   > php to your theme directory and make changes as necessary.
   > You can even rename it – but make sure to indicate that in the shortcode using
   > the template=’template_name.php’.
   > You can even use different templates for each shortcode if you like.
 * From the [Installation page](http://wordpress.org/extend/plugins/posts-in-page/installation/):
 * > `[ic_add_posts template='template-in-theme-dir.php']` – In case you want to
   > style your markup, add meta data, etc. Each shortcode can reference a different
   > template. These templates must exist in the theme directory.
 * Hope that helps.
 * Eric

Viewing 1 replies (of 1 total)

The topic ‘Adding custom classes’ is closed to new replies.

 * ![](https://ps.w.org/posts-in-page/assets/icon-256x256.png?rev=1596190)
 * [Posts in Page](https://wordpress.org/plugins/posts-in-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-in-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-in-page/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-in-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-in-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-in-page/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Eric Amundson](https://wordpress.org/support/users/sewmyheadon/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/adding-custom-classes/#post-3229377)
 * Status: resolved