• My primary purpose of using the plugin is to replicate the default behavior of the_excerpt(), but forcing whole sentences.

    If I strip all tags, paragraphs are combined (which isn’t too bad), but the excerpt is not wrapped with a p tag which alters the spacing (note a wrapping p tag is added with the default the_excerpt() ). I guess this could be resolved with an extra filter.

    If I strip all tags excerpt paragraphs, this is also OK and probably more ideal as it, except for the fact that any inline styles/classes come through and can break the formatting (like alignment or font sizes).

    Can styles/classes be stripped?

Viewing 1 replies (of 1 total)
  • Plugin Author WPKube

    (@wpkube)

    If the spacing is the only problem then that could be resolved with a bit of CSS, there’s most likely a wrapper div added by the theme to hold the excerpt, usually it’s with a specific class, so it can be targeted with CSS and spacing added.

    Can you send over the URL to the site?

Viewing 1 replies (of 1 total)
  • The topic ‘Strip attributes or add paragraphs’ is closed to new replies.