@ajay I used the editing option, I don’t like manipulating css, if there is a better solution (change the div to span) than I choose that solution…
Previously I had to create my own function and call the short code. I use plugin such as Search & Replace to change [crp] inside my post with my own short code which actually use the php function provided by Contextual Related Post.
So, when I know that it can be changed via output-generator.php I use the [crp] again and run the Search & Replace plugin to finish it π
Plugin Author
Ajay
(@ajay)
Thanks both. I will push through an update very soon.
Just to “me too”, in my case adding the CSS provided to my theme’s custom CSS field seemed to fix the issue immediately.
Thanks to everyone for finding a good fix, and Ajay for the support: much appreciated.
Thanks for the tip. I had the problem with Hueman theme and thought the problem came from the theme.
While adding
.crp_title {display: inline;}
to the CSS fixed the problem in WordPress, the problem still exist in the RSS feed of the blog articles.
You can see that in the automatic feed of an article through MailChimp here:
http://us1.campaign-archive2.com/?u=d7f57d93344b9e8a525c54418&id=84fbf2811c
How can we fix this?
That’s true. Same effect with feedburner.
Plugin Author
Ajay
(@ajay)
Hi,
I see a list of posts in there with no thumbnails.
Also, have you tried editing the file above as per the previous posts. Note that the CSS change will only apply to your site and won’t impact your feedburner or any other feeds
The aforementioned css tweak corrected the formatting issues for me as well. Thanks!
-
This reply was modified 9 years, 7 months ago by
Revived.
The problem still shows in AMP view.
Plugin Author
Ajay
(@ajay)
@li-an, did you try changing the div to span by editing the file?
I donβt think so. Not 100% sure.
hi to all, i have the same issue with <div class=”crp_title”>, and so i check the plugin code and found the filter: crp_list_link
My solution for widget output whitout thumbnail is:
if( function_exists('get_crp') ) {
add_filter('crp_list_link', 'fc_crp_list_link', 10, 3);
function fc_crp_list_link( $output, $result, $arg ){
//var_dump($output);
$output = str_replace('<a href', '<h5><a href', $output);
$output = str_replace('</a>', '</a></h5>', $output );
$output = str_replace('<div class="crp_title">', '', $output);
$output = str_replace('</div>', '', $output );
return $output;
}}
is not so clean, but working well, don’t touch css only add filter in functions.php.
my2cents
Plugin Author
Ajay
(@ajay)
I pushed through v2.3.1 that fixes this specifically. If the output looks funny after upgrading, please clear the plugin cache from the settings page, plus the browser cache