Problem with sidebar images - by Peter - on WordPress WooCommerce support

This topic has 6 replies, 2 voices, and was last updated 1 years, 6 months ago ago by Rose Tyler

  • Avatar: Peter
    Peter
    Participant
    April 27, 2023 at 10:01

    Hi,
    I’m having trouble displaying photos in my blog’s sidebar.
    I marked them on the screenshot.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 27, 2023 at 10:41

    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

    Avatar: Peter
    Peter
    Participant
    April 27, 2023 at 10:51

    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?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 27, 2023 at 13:13

    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

    Avatar: Peter
    Peter
    Participant
    April 27, 2023 at 13:25

    I meant if I regenerate the thumbnails will the other photos not be damaged?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 27, 2023 at 13:35

    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

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.