Thumbnails and text no longer align after update
-
Hi Hector,
First of all, thank you for making an awesome plugin. I wanted to tell you about my recent experience after updating to version 2.3.5. I use the standard css that comes with your plugin, however, after upgrading the alignment of any text when thumbnails are activated. The text aligns to the base and there is no margin between the image and the text. It works fine however for posts that do not have a thumbnail and the default no_thumb.jpg is shown. There the alignment and margins are OK.
I investigated this issue and found that the posts with a thumbnail set are missing out on a class. They are assigned the classes wpp_def_noPath and wpp_featured but not the standard class that is set in the standard wpp.css file
wpp-thumbnail
. It appears that this is not set on line 1389 of wordpress-popular-posts.php. I am not sure whether this is a bug or not. I added wpp-thumbnails here so the line looks like this:return "<img src=\"". $new_img ."\" alt=\"\" border=\"0\" width=\"{$dim[0]}\" height=\"{$dim[1]}\" class=\"wpp-thumbnail wpp_cached_thumb wpp_{$source}\" />";
.I’d be happy to hear if I missed a nifty setting here and maybe there is another way to fix this.
Kind regards,
Kevinhttps://www.ads-software.com/extend/plugins/wordpress-popular-posts/
- The topic ‘Thumbnails and text no longer align after update’ is closed to new replies.