WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[resolved] how to place popular post thumbnails alongside ad in sidebar (4 posts)

  1. cookieandkate
    Member
    Posted 1 year ago #

    Hi,

    First of all, thank you so much for this plugin. It's fantastic.

    Currently, I use the plugin as a sidebar widget that displays my top 10 most popular posts (thumbnails only, see it at cookieandkate.com). I'm trying to optimize my ad revenue, however, and would like to try adding a 160x600 ad where my popular post thumbnails are now. I'd like to display the thumbnails for my top 5 most popular posts vertically, to the left of that ad. My theme is set up for 300 pixel wide widgets but I'm not sure how to effectively split the space inside the widget to include both the ad and the popular posts. Is that at all possible?

    Hope so! Your help would be so appreciated.

    Thank you,
    k

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Kate,

    This is more related to CSS and coding than to the WPP plugin ifself. Anyways, I can give you an idea:

    In your theme's sidebar.php, you could create another div 160px wide and put it right before the div containing the widget, and have it floating to the left with float:left; (CSS). This new div would contain the ad, of course.

    Then, have the div containing the widget float to the right (float:right;). Also, you'd need to adjust the popular list CSS to make each element use a single line (not floating, as you have it now) and maybe change the thumbnail's width & height as well.

  3. cookieandkate
    Member
    Posted 1 year ago #

    Thank you so much for your suggestions, Hector. I shared them with my theme's forum and some members are helping me make it happen. Have a great day!

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    No problem, have a great day you too!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags