If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
August 7, 2012 at 6:15 am #15095
Enjoying the theme. Good work.
Having some trouble with my drop caps appearing in the sidebars (easy to hide by turning off the excerpts) and the archive pages.
i.e. if you look at blog category and you go to the page where all of the blogs are in that category, the dropcap is just missing making it look like I’ve missed the first letter of each post.
TimAugust 8, 2012 at 10:03 pm #86191
It looks like the wordpress function the_excerpt actually strips out html tags (like the shortcode) so you’ll need to create a new function if you want to include them in excerpts.
This looks like a pretty straightforward guide on adding support for it: http://aaronrussell.co.uk/legacy/improving-wordpress-the_excerpt/
When it has you modify what tags to show in the new function you can include span as well:
$text = strip_tags($text, '<span>');
Alternatively, you can use the <!–more–> tag in your posts to signify where the post should be cut off and then change the archive page to spit out the content before the more tag only. In that case, you would open up includes>loop-archive.php in your theme files and look for:
Change the_excerpt to the_content like this:
DevinAugust 10, 2012 at 3:44 am #86192
Thank you Devin, that did the trick. I was a little worried because the function you’re meant to replace didn’t appear in that functions file (must be the aviva framework) but adding the new function outlined in that article, putting in the span exception, and telling it to use the new one worked.
I also figured out that I could probably find a 3rd party plug-in to do it too. “Advanced Excerpts” looks pretty promising.
TimAugust 10, 2012 at 4:03 am #86193
The topic ‘Blog dropcaps gone on archive pages’ is closed to new replies.