Title: Excerpt Styling
Last modified: August 22, 2016

---

# Excerpt Styling

 *  Resolved [EmperorFPM](https://wordpress.org/support/users/emperorfpm/)
 * (@emperorfpm)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/excerpt-styling/)
 * The styling doesn’t come to the list page in the excerpt. How can I make the 
   styling work in the excerpt?
 * [https://wordpress.org/plugins/cc-child-pages/](https://wordpress.org/plugins/cc-child-pages/)

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

 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/excerpt-styling/#post-5565632)
 * I’m afraid that styling in the excerpt is not possible.
 * The shortcode uses WordPress’ own functionality to generate excerpts where a 
   page’s excerpt is empty.
 * Any formatting is stripped from the content before it is trimmed down (to avoid
   ending up with HTML tags that are opened but not closed because the closing tag
   is after the cut-off point).
 * This is the same way that excerpts work for all post types.
 * See [http://codex.wordpress.org/Function_Reference/get_the_excerpt](http://codex.wordpress.org/Function_Reference/get_the_excerpt)
   and [http://codex.wordpress.org/Function_Reference/wp_trim_excerpt](http://codex.wordpress.org/Function_Reference/wp_trim_excerpt)
   for more information about how excerpts are generated.
 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/excerpt-styling/#post-5565746)
 * Hi. This isn’t a 100% fix for your situation, but I’ve made some small changes
   to the way the plugin handles excerpts.
 * Generated excerpts (where no custom excerpt has been entered for the page) will
   still be stripped of their HTML tags (for the reasons outlined above), but custom
   excerpts will now only be passed through wp_trim_excerpt (which would remove 
   HTML) if they are longer than the specified word count (55 by default, set using
   the `words` parameter: `[child_pages words="255"]`).
 * When combined with the Rich Text Excerpts plugin, this should mean that you can
   specify formatted text as a custom excerpt for each page.
 * (You will need to add the rich text editor to the pages post type using the settings
   in the Rich Text Excerpts plugin, as pages do not have excerpts by default – 
   my plugin adds that functionality.)
 * I will look at refining this solution in the future, but hopefully this will 
   help in the meantime.
 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/excerpt-styling/#post-5565747)
 * Rich Text Excerpts plugin – [https://wordpress.org/plugins/rich-text-excerpts/](https://wordpress.org/plugins/rich-text-excerpts/)
 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/excerpt-styling/#post-5565816)
 * I have just released a new version of the plugin which includes a new parameter
   for the shortcode:
 * You can stop Custom Excerpts from being truncated by seting the `truncate_excerpt`
   parameter to “false”:
 * `[child_pages truncate_excerpt="false"]`
 * … this will display custom excerpts exactly as entered without being shortened.(
   Especially useful if using the Rich Text Excerpts plugin, in which case all styling
   will be preserved.)
 *  Thread Starter [EmperorFPM](https://wordpress.org/support/users/emperorfpm/)
 * (@emperorfpm)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/excerpt-styling/#post-5565820)
 * awesome.
    Thanks
 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/excerpt-styling/#post-5565860)
 * I’m marking this as resolved now. I have provided a way to have styled excerpts,
   and the rest of the behaviour is consistent with standard WordPress functionality.

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

The topic ‘Excerpt Styling’ is closed to new replies.

 * ![](https://ps.w.org/cc-child-pages/assets/icon-256x256.png?rev=3451096)
 * [CC Child Pages](https://wordpress.org/plugins/cc-child-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cc-child-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cc-child-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/cc-child-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cc-child-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cc-child-pages/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/excerpt-styling/#post-5565860)
 * Status: resolved