I need to change size of featured image being displayed and post title. I want featured image to be of size as of other blocks like recent posts and similarly for the title.
Thnaks
]]>https://ibb.co/CH18hm1
https://ibb.co/xX52sHN
Thanks for your time
]]>Since about a week or a little more the widget showing the blog statistics, and the top posts and pages widget are not working anymore. Blog stats widget (in German: Statistik) still shows 28,446 visitors, and top posts and pages (in German: Meistbesucht) still shows the same articles even they are changing from day to day.
Any help appreciated.
Ronald
]]>I used the custom CSS code described here – https://jetpack.com/2013/08/20/custom-thumbnails-top-posts-widget/
and I managed to enlarge the images but they get very blurry.
Is there a way of fixing this?
My site is https://blogdocaminhoneiro.com/
]]>Hoping someone can help with this.
I am trying to customise this widget so that I can add a line (hr tag) below each post in the list.
I read here we can add content after a post: https://jetpack.com/2016/01/12/hooks-customize-top-posts-pages-widget/
However when doing this it adds it before the end of </li>
tag, causing the line to appear not below the whole content but to the side of the image.
The <hr>
tag needs to be inserted after the </li>
tag – is this possible?
Thanks.
]]>I used the custom CSS code described here – https://jetpack.com/2013/08/20/custom-thumbnails-top-posts-widget/
and I managed to enlarge the images but they get very blurry.
Is there a way of fixing this?
]]>Quick question. I’m sure it’s trivial, I’m just not that fluent in PHP yet.
I understand the following code is the suggested way to remove a specific post (via its post_ID) from the ‘Top Posts’ widget.
Jetpack: remove a post from the Top Posts Widget
function jeherve_remove_post_top_posts( $posts, $post_ids, $count ) {
foreach ( $posts as $k => $post ) {
// Replace 1215 by the ID of the Post you want to remove
if ( '1215' == $post['post_id'] ) {
unset( $posts[$k] );
}
}
return $posts;
}
add_filter( 'jetpack_widget_get_top_posts', 'jeherve_remove_post_top_posts', 10, 3 );
However, how would I remove multiple posts? Do I have to use multiple ‘if’s? Or can I somehow use an OR operator or commas? Or something else entirely?
I haven’t seen anywhere where this is touched on. Anyway, thanks in advance.
]]>