Hide sidebar in category pages that contains only subcategories

This topic has 10 replies, 3 voices, and was last updated 9 months, 2 weeks ago ago by Andrew Mitchell

  • Avatar: Valentin
    Valentin
    Participant
    March 9, 2024 at 18:30

    Hello,
    In category pages i want to show only subcategories. Is there a way of hiding the sidebar in this pages?

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 10, 2024 at 09:09

    Hello, Valentin,

    Thank you for reaching out to us with your query.

    To assist you effectively, we would require the URLs of the pages in question. Kindly provide us with these details so that we may proceed with custom CSS code solutions tailored to your needs.

    Best Regards,
    8Theme’s Team

    Avatar: Valentin
    Valentin
    Participant
    March 11, 2024 at 10:30

    Hello,
    I don’t think this is a matter of css. I have attached:
    – snip 1: i want to hide the sidebar and only show the subcategories
    – snip 2: i want to show the sidebar

    Files is visible for topic creator and
    support staff only.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 11, 2024 at 10:53

    Hello, Valentin,

    Thank you for providing the screenshots. Additionally, we require the links to these pages.

    Currently, there is no option in the settings to achieve the result you are seeking. That is precisely why we suggested the path of utilizing CSS code.

    Best Regards,
    8Theme’s Team

    Avatar: Valentin
    Valentin
    Participant
    March 11, 2024 at 10:56

    Hello,
    https://zyko.ro/diy/

    This is one main category, that has subcategories.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 11, 2024 at 11:33

    Hello, Valentin,

    We appreciate your prompt response.

    Please try to add the next code in Theme Options > Theme custom CSS > Global:

    .term-90 .sidebar {
        display:none;
    }
    .term-90 .main-products-loop {
        width: 100% !important;
        left: 0px;
    }

    Best Regards,
    8Theme’s Team

    Avatar: Valentin
    Valentin
    Participant
    March 11, 2024 at 12:21

    Hello,
    Your code works only for the main category (DIY). If you go to subcategory “Feronerie” …. etc, the sidebar is visible

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 11, 2024 at 12:29

    Hello, Valentin,

    We can confirm that your request is accurate. Consequently, we require the URLs for each page where you wish to have the sidebar disabled. Would you be so kind as to furnish us with the complete list of URLs at your earliest convenience?

    Best Regards,
    8Theme’s Team

    Avatar: Valentin
    Valentin
    Participant
    March 11, 2024 at 16:27

    No need, i figured out. Thanks!

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    March 11, 2024 at 16:27

    Dear Valentin,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

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

The issue related to '‘Hide sidebar in category pages that contains only subcategories’' has been successfully resolved, and the topic is now closed for further responses

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