WordPress.org

Ready to get started?Download WordPress

Forums

Popular Posts Tabbed Widget for Jetpack
[resolved] Shows thumbnail despite setting Thumbnail Size to 0 (8 posts)

  1. scgupta
    Member
    Posted 1 year ago #

    Even if set Thumbnail Size to 0, it still shows images. I have currently set Thumbnail Size to 1 to sidestep this issue to some extent.

    This plugin will be more useful if:
    1) of course set Thumbnail Size to 0 worked
    2) doesn't show the wordpress thumbnail if no image was associated with the post (or had option to configure that)
    3) has option to disable showing the date (currently I have achieved that by modifying the plugin code, which I would prefer not to do)
    4) Allowed to choose color of the Nav bar (I mean Latest, Popular, Today, Week, Month all etc.) so that I could customize it to suit my theme.

    Thanks,
    +satish

    http://wordpress.org/extend/plugins/popular-posts-tab-widget-for-jetpack/

  2. scgupta
    Member
    Posted 1 year ago #

    It just occurred to me that setting thumbnail size to 0 might not be working for me because none of my posts have an image associated, and the plugin uses that setting only if an image was associated. If no image is associated then it just uses default image and ignore thumbnail size.

    It is just a guess, I have not really examined the code to verify that.
    Thanks,
    +satish

  3. Ryann Micua
    Member
    Plugin Author

    Posted 1 year ago #

    actually, it's my fault. if you go to the main plugin file popular-posts-tab-widget-for-jetpack.php, in line #249 under the Popular_Posts_Tabbed_Widget_Jetpack:widget() function, you can see this line of code:

    $thumb_size = empty( $instance['thumb_size'] ) ? 45 : intval( $instance['thumb_size'] );

    That's why you can't disable the plugin and it's totally my fault coz I overlooked that.

    Anyway, since you're already editing the plugin, just look for that line and change it to this:

    $thumb_size = !isset( $instance['thumb_size'] ) ? 45 : intval( $instance['thumb_size'] );

    and that should work.

    and YES, I KNOW YOU SHOULDN'T BE EDITING THE PLUGIN ITSELF COZ IF YOU UPDATE THE PLUGIN YOU LOSE ALL CHANGES.

    don't worry though, I should have this changes in the next update.

  4. scgupta
    Member
    Posted 1 year ago #

    Hi Ryann, thanks a lot. That fixed it. I don't no much web-programming/html/css/JS etc. So it would been impossible for me to fix it myself. So thanks again for helping me.

    This is a cool plug-in, and I like it. Since you are working on update, if I may submit features:
    (1) allow another tab (say Featured), which could be a set of pages/post (or simply just a menu) to highlight content.
    (2) an option to include pages (and not just posts) in Most Popular.
    (3) Options for selecting color/fonts etc.

    Thanks, and great work.
    +satish

  5. Ryann Micua
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for your suggestions. I'll see what I can do :)

    and to let you know how likely each of the suggestions will be done:
    #1. very nice. I assume you mean a user-selected set of posts/pages that you'd like to feature right? this will probably be down the road still though.

    #2. this can happen on the next update.

    #3. most likely not gonna happen. sorry, I know many users want this feature but building design options (even a simple one) is a headache that I'd rather not have especially on a free plugin ;) not to mention the support issues I'll most likely have to deal with.

  6. scgupta
    Member
    Posted 1 year ago #

    #1: yeah, I meant user selected set of posts/pages. By menu I meant that one can make a menu of those featured posts/pages and just specify that menu in your plug-in's widget's setting (instead of defining all those featured pages and posts in your widget).

    #3: I understand. Hopefully you will have pro version in future.

    Looking forward to future releases :-)
    thanks,
    +satish

  7. scgupta
    Member
    Posted 1 year ago #

    Hey, I just realized that it has not actually fixed the issue completely. The change in line #249 has fixed the issue only for Latest tab.

    You can check it out at http://www.satishchandragupta.com If you click on the Popular tab of the widget, and then TODAY, you will see wordpress icon listed in each entry.

  8. scgupta
    Member
    Posted 1 year ago #

    The new version has fixed the image issue. Thanks.

    Someone pinged me about how I have customized it for colors / font etc. Here is the custom CSS I am using (I have http://wordpress.org/plugins/jetpack/ plugin installed, and custom CSS can be entered at Appearances > Edit CSS menu):

    .pptwj-tabs-wrap .tab-links {
    	background: #f9f9f9;
    	border-bottom: 3px solid #eee;
    }
    
    .pptwj-tabs-wrap .tab-links li a {
    	color: #ccc;
    	font-weight: 300;
    	font-family: 'Oswald', sans-serif;
    	font-size: 20px;
    	text-transform: none;
    }
    
    .pptwj-tabs-wrap .tab-links li a.selected, .pptwj-tabs-wrap .tab-links li a:hover {
    	background: #eee;
    	color: #333;
    }
    
    .pptwj-tabs-wrap .boxes ul li a {
    	color: #21759b;
    }
    
    .pptwj-tabs-wrap .boxes ul li a:hover {
    	color: #d54e21;
    }
    
    .pptwj-tabs-wrap .boxes ul.tab-filter-list {
    	background: #eee;
    }
    
    .pptwj-tabs-wrap .boxes ul.tab-filter-list a {
    	color: #ccc;
    }
    
    .pptwj-tabs-wrap .boxes ul.tab-filter-list a.selected, .pptwj-tabs-wrap .boxes ul.tab-filter-list a:hover {
    	color: #333;
    }

    Just in case it might be of some use for anyone else.
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.