Hi icapricorn,
Within the code we’re running the following code to ensure that we’re the only ones modifying the output of the excerpt
remove_all_filters( 'get_the_excerpt' );
remove_all_filters( 'the_excerpt' );
Would you have any idea if this code would be messing with your excerpt font / layout?
If so, we could provide a filter that disable this functionality.
Cheers,
Chris
Thank you Chris for your replay. I don’t have the expertise to answer your question. All I can tell you is that when I updated the plugin, the font and margins of my excerpt were replaced by a small font and a cluttered look.
Here is the page in question. http://www.johncalendo.com/journal/
Instead of full blog posts, I use excerpts from the post which are then clicked on. One of the items, called the teaser, randomly pulls an excerpt from one of my non-blog articles. As you see it now, without your plugin, this is how the page should look.
I spent a summer a few years ago studying wordpress code, tweaking my site and haven’t touched the code since. I’ve forgotten how I made it all work.
I don’t know if the following is pertinent, but each blog post is formatted as an Aside. I use custom fields. One is “ImgAside” which sets up the small picture to the left of each excerpt. Here is the code:
<!--ASIDE FORMAT -->
<?php if ( has_post_format( 'aside' )) {?>
<div class="entrybody">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr >
<td width="221" valign="top">
<?php if ( get_post_meta($post->ID, 'imgAside', true) ) : ?>
<div style="float:left; padding:6px; margin:12px 0px 10px 0px; background-color:#FFFFFF; border:solid 1px #ADADAD; clear:both;" >
<img src="/images/<?php echo get_post_meta($post->ID, 'imgAside', true); ?>" height="215" width="215" ></div>
<?php endif; ?>
</td>
<td width="10"> </td>
<td valign="top" ><div style="overflow: hidden; height: 232px;"> <?php the_excerpt() ?></div> <br> <a href="<?php the_permalink() ?>" style="text-decoration:none; float:right;"> More →</a> </td>
</tr>
</table>
Thank for your help and for making plugins.
John
Looks like your site’s CSS is targeting your paragraph <p> tags and applying the font / layout.
You may simply need to ensure that your excerpt content is wrapped in paragraph tags.
Yes, that has fixed it. The excerpts were not within paragraph tags, as WordPress has dispensed with the need for them in the post proper. I am now adding the paragraph tags to all my excerpts.
For the time being, I will keep your plugin deactivated. I forget now why I needed it. When an issue comes up with an excerpt, I will activate it and see if solves it.
Thanks for you attention to this matter, and knowing how to fix it.
Best…John
I realize I can add the paragraph tags in the code, rather than in each individual excerpt. So much easier. That’s thanks to you: I realize you had diagnosed my problem solely from reading my code.