• Resolved Russell

    (@coastventures)


    Hi, If you take a look at the site you’ll see the feed items display as so:

    title on top
    thumbnail on next line
    excerpt on next line next to thumbnail
    source meta under thumbnail

    I’d like to make the title, excerpt, and source meta display to the right of the thumbnail. You can see what I mean by looking at this image: https://musicalhelp.org/rss.png

    Thanks for any assist, info, or suggestions.

    • This topic was modified 4 years, 10 months ago by Russell.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Travis

    (@tjtaylor)

    Hello,

    This would require some custom PHP and CSS styling. First you would need to hook into the layout and display the image first:

    function custom_rss_layout_callback( $layout ) {
        $layout = array(
            'thumbnail',
            'title',
            'content',
            'postdata',
        );
        return $layout;
    }
    add_filter( 'wp_rss_retriever_layout', 'custom_rss_layout_callback' );

    Then you will need use to CSS to adjust the float/clear attributes to display the image to the left of the content.

    Thread Starter Russell

    (@coastventures)

    Thanks for your reply. I finally found it in the classes folder. Your code only creates a mass of syntax errors throughout the php file. It does not work. Perhaps I did it wrong.

    Maybe I need to know just how and where to put this code in. I’m not sure, you didn’t tell me. What should be removed in the existing code and where to put your code? I can alter/edit some but I’m no programmer. I can’t write nor read php other than what is obvious. I would like to accomplish the customization but need some help on this one.

    Thread Starter Russell

    (@coastventures)

    Odd? Why is this thread marked as resolved? Isn’t that my determination?

    Plugin Author Travis

    (@tjtaylor)

    Hello,

    This code should go in your themes functions.php file. Let me know if this works for you!

    Thread Starter Russell

    (@coastventures)

    Great, thank you. Almost there.. The title is now beside the thumbnail but the source is still underneath and spaced widely. I changed the thumbnail size in the shortcode. I would like to get the source up under the excerpt. I thought maybe enlarging the thumbnail might put it there but it doesn’t. All feed sources are the same, underneath everything. If I can’t get the source to go there I’d at least like to close the gap some above it.

    I do one issue: I have all four of my feeds set at excerpt of 65 characters. Some of the feeds are displaying a lot more than that, like several hundred. Not sure how to remedy.

    Hey I do appreciate your efforts to help me here, it’s rare and I thank you much ??

    Thread Starter Russell

    (@coastventures)

    I did get the source to come up some using the css by reducing the top margin.

    Plugin Author Travis

    (@tjtaylor)

    Add this to your CSS:

    .wp_rss_retriever_metadata:before, .wp_rss_retriever_metadata:after {
        content: none !important;
    }
    
    .wp_rss_retriever li {
        clear: both;
    }
    
    Thread Starter Russell

    (@coastventures)

    What is this code supposed to accomplish? It did put back the wide space between the thumbnail and the source meta which I fixed yesterday. The rest looks the same. In fact, the source meta is closer to the next feed item than the one it represents. Oh well, another two days..

    Thread Starter Russell

    (@coastventures)

    It looks like the source meta margin depends upon how long the sent excerpt is. On longer ones it is close enough. I suppose I can live with it as it is, no biggie. Thanks again.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Layout of the Feed item’ is closed to new replies.