Sidebar moving content to the right when no search results found

This topic has 15 replies, 3 voices, and was last updated 1 years, 3 months ago ago by Tony Rodriguez

  • Avatar: Vedad07
    Vedad07
    Participant
    August 9, 2023 at 11:58

    Regards,

    why is sidebar moving content of “No results found” to the right if there is no need for sidebar in this situation, it just leaves strange looking layout. How can i resolve this since I need layout with sidebar in my shop pages?

    Sidebar ruining layout when no products found

    14 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 9, 2023 at 13:01

    Hello, Vedad07,

    Thank you for getting in touch with us.

    Header builder > Search > SEARCH RESULTS PAGE > Sidebar Position.

    Should you have any further inquiries or issues, we encourage you to contact us without hesitation. Our support team is consistently accessible to provide assistance.

    Kind Regards,
    8theme team

    Avatar: Vedad07
    Vedad07
    Participant
    August 9, 2023 at 13:07

    Ok, thank you, that part is resolved. I also have the same situation when there is an empty archive for example. archive of category: shirts, when there are no products, it shows the same layout. Can you help me with this also?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 9, 2023 at 13:14

    Hello, Vedad07,

    We appreciate your prompt response.

    Please provide URL of the mentioned page and temporary wp-admin access, so we can take a closer look at your settings.

    Kind Regards,
    8theme team

    Avatar: Vedad07
    Vedad07
    Participant
    August 9, 2023 at 13:22

    Hi, thank you for your amazingly quick assistance and approach. I am sending you the access

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 9, 2023 at 13:54

    Hello, Vedad07,

    We’ve added a Product Categories Widget – https://prnt.sc/5J3-9WKjWi19
    Please check how it works now.

    Kind Regards,
    8theme team

    Avatar: Vedad07
    Vedad07
    Participant
    August 9, 2023 at 16:09

    Thank you for your help, but It wasn’t the right solution since the filters I had were perfectly good. You changed now all the filters that were perfect for the shop page. The only thing that was bugged inside the theme is the layout of an archive page that doesn’t have products inside – it pushes the content like the sidebar is still there. For example, the best solution for an empty archive is to not have a sidebar at all to enable text positioning to the centre. Hope you understood. Thanks again for your assistance.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 9, 2023 at 19:22

    Hello, Vedad07,

    Thank you for your response.

    Please provide FTP access, we will check more deeply what can be done to help you.

    To create FTP access (FTP host, FTP username, FTP password, FTP port, FTP encryption) , please contact your hosting provider for assistance.

    Kind Regards,
    8theme team

    Avatar: Vedad07
    Vedad07
    Participant
    August 10, 2023 at 11:23

    Sending you FTP access.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 10, 2023 at 12:18

    Hello, Vedad07,

    Thank you for your response, but we can’t connect.
    Please check – try to connect to FTP using FileZilla by yourself and provide us with the correct credentials.
    Is there a restriction by ip or something else that doesn’t allow us to connect?

    Kind Regards,
    8theme team

    Avatar: Vedad07
    Vedad07
    Participant
    August 10, 2023 at 12:34

    Ok, FTP issue is now resolved. I managed to connect.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 10, 2023 at 15:58

    Hello, Vedad07,

    Thank you for your response.

    We will have another specialist review your inquiry in greater detail and will be in touch with you.
    Please be patient and do not change access.

    Kind Regards,
    8theme team

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 10, 2023 at 18:33

    Hello, Vedad07,

    Please, check now!
    We added for you next code snippet to child-theme/functions.php

    add_filter('etheme_page_config', function($layout) {
        if ( class_exists('WooCommerce') && get_query_var('et_is-woocommerce-archive', false) && !woocommerce_products_will_display() ) {
              set_query_var('et_cat-sidebar', 'without');
              $layout['sidebar'] = 'without';
        }
        return $layout;
    });

    Kind Regards,
    8theme team

    Avatar: Vedad07
    Vedad07
    Participant
    August 10, 2023 at 19:30

    This solution works. Thank you very much for the assistance.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    August 11, 2023 at 05:30

    Hello, @Vedad07,

    We would be grateful if you could kindly leave a 5-star rating for our theme and customer and technical support on ThemeForest at http://themeforest.net/downloads. Doing so would help us to provide more updates and dedicated support in the future. Your support would be greatly appreciated.

    Thank you for your time. We hope you have a wonderful day.

    Please note that for any new issues, you should create a new ticket on the support forum.

    This topic is now closed.

    Warm regards,
    8Theme’s Team.

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

The issue related to '‘Sidebar moving content to the right when no search results found’' has been successfully resolved, and the topic is now closed for further responses

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.