Site logo

Archived topic

Post Excerpts pulling in Soliloquy info as well

4 replies · Started by willworksdesigns on February 23, 2019

Viewing posts 1–5 of 5

Hi Tom,

I'm having an issue with Soliloquy (slider) code showing up in my post excerpts when I view posts as an archive. The posts themselves consist of a two column layout with a Soliloquy slider on the left and text content on the right. The posts are fine when viewed as posts but view a category archive and the excerpts show the slider code. Here's a screenshot image on Dropbox for reference:

1. The archive view:
https://www.dropbox.com/s/w9wajf6hznhvzna/Screen%20Shot%202019-02-23%20at%206.33.20%20AM.png?dl=0

2. The post view:
https://www.dropbox.com/s/j1tjgqqjuxpugcn/Screen%20Shot%202019-02-23%20at%207.10.26%20AM.png?dl=0

Thanks for any light shed on this issue!

Hi there,

WordPress excerpts strip HTML from the content. In this case, it's stripping the <style> tag of the slider, and showing the CSS.

I'm not sure of a specific solution, unfortunately. One possibility is to include a custom excerpt using the Excerpt metabox. That way WordPress won't pull the slider into the excerpt at all.

Thanks for the explanation and the suggested solution, Tom. Sounds like a viable workaround. I'll give it a go.

Hi Tom,

For anyone interested in a plug-in based solution to this issue…

This plugin adds a rich-text post excerpt box for each post that replaces the standard post excerpt:
https://en-ca.wordpress.org/plugins/rich-text-excerpts/

It takes a second to set-up and works like a charm as shown in this image of a post using rich-text excerpt and another post not set-up to use it:
https://www.dropbox.com/s/u441lkt7wsqgbep/Screen%20Shot%202019-02-23%20at%2010.13.38%20AM.png?dl=0

Best,
WV

Thanks for sharing!

This archived topic is closed to new replies.