• Resolved Arkantos

    (@arkantos)


    Hi, I noted that Hotmail was not properly rendering the image alignment of my feed posts, so I fixed it.

    In feedzy-rss-feeds.functions.php, around line 302 (‘Insert cover picture to main rss feed content’), replace with the following code:

    function feedzy_insert_thumbnail_RSS( $content ) {
    	 global $post;
    	 if ( has_post_thumbnail( $post->ID ) ){
    		  $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail', array( 'style' => 'float:left; margin:0 5px 25px 0; width:90px !important; height:90px !important;display:block;', 'align' => 'left', 'hspace' => '10'  ) ) . '' . $content;
    	 }
    	 return $content;
    }
    add_filter( 'the_excerpt_rss', 'feedzy_insert_thumbnail_RSS' );
    add_filter( 'the_content_feed', 'feedzy_insert_thumbnail_RSS' );

    And that’s it! Since Hotmail does not render the css array, we have to add ‘align’ and ‘hspace’ as arrays to float the image and give it some horizontal padding.

    https://www.ads-software.com/plugins/feedzy-rss-feeds/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Image float left – Hotmail FIX’ is closed to new replies.