• I’ve updated the plugin to the latest version (2.3.0) and I got some problems with the style…

    In the previous version, when I use shortcode [crp] then the result for the list is

    <li><a href>title</a></li>

    In this version, it is

    <li><a href><div class="crp_title">title</a></li>

    How can I remove the div class crp title?

    Thanks before…

    SiRetu

    • This topic was modified 8 years, 1 month ago by Si Retu.
Viewing 14 replies - 16 through 29 (of 29 total)
  • In my case: just the CSS

    Thread Starter Si Retu

    (@siretu)

    @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:
    https://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

    Revived

    (@revived)

    The aforementioned css tweak corrected the formatting issues for me as well. Thanks!

    • This reply was modified 8 years ago by Revived.
    Li-An

    (@li-an)

    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?

    Li-An

    (@li-an)

    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

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Remove div class=”crp_title”’ is closed to new replies.