This topic has 6 replies, 2 voices, and was last updated 1 years, 7 months ago ago by Rose Tyler
Hi,
I’m having trouble displaying photos in my blog’s sidebar.
I marked them on the screenshot.
Hello, Peter,
Thank you for choosing XStore as your WooCommerce WordPress theme.
Please add the next custom CSS code
.recent-posts-widget .post-widget-item h4 {
margin-top: 25px;
}
and delete this line of custom CSS code – https://prnt.sc/vJVXQGFfE5n1
We hope this information is helpful.
Kind Regards,
8theme team
Hi,
I did what you wrote.
Now the photos are in the form of a square, and by default all photos for posts are rectangular and it looks ugly in the sidebar.
What can be done to improve it?
Maybe these graphics in the sidebar must be rectangular after all?
Hello, Peter,
In this case, you can try to add the next code in functions.php file of your child theme:
add_filter('etheme_widget_post_tabs_thumbnail_size', function (){
return array(105,68);
});
After this, you need to Regenerate Thumbnails to apply changes for images. You can use the Regenerate thumbnails plugin to do this https://wordpress.org/plugins/regenerate-thumbnails/
Kind Regards,
8theme team
I meant if I regenerate the thumbnails will the other photos not be damaged?
Hello, Peter,
As you can see from the code – etheme_widget_post_tabs_thumbnail_size will be changed only, so changes will affect only the mentioned widget in the sidebar.
Kind Regards,
8theme team
You must be logged in to reply to this topic.Log in/Sign up