Home › Forums › WoodMart support forum › Remove sidebar only from categories page
Remove sidebar only from categories page
- This topic has 13 replies, 3 voices, and was last updated 3 years, 10 months ago by Artem Temos.
-
AuthorPosts
-
February 26, 2021 at 8:55 am #269418
StubbiParticipantHi,
First of all, thank you very much for the great template. I have a question about the Sidebar on the Shop page. I’ve read the question several times, but haven’t found a solution.
When I click on the shop page, I just want show the categories without a sidebar, like this:
https://woodmart.xtemos.com/shop/demo/lingerie/?opt=only_categories
But the sidebar should appear when you click on the category, like here:
https://woodmart.xtemos.com/product-category/clocks/demo/lingerie/
I don’t want a off-canvas sidebar.
How can I do that? Unfortunately I can’t find anything about it. Thank you in advance. Best regardsFebruary 26, 2021 at 11:24 am #269469
Aizaz Imtiaz AwanKeymasterHello,
Sorry, but it is not possible to remove the sidebar from the categories pages while keeping it for the Shop page.
It requires customizations and this is beyond our limitations and support policy.
Best Regards.
February 26, 2021 at 11:50 am #269478
StubbiParticipantHi, thanks for the answer.
But you show it as a demo on your homepage. How can you show something beyond your limitations and support policies? That’s a bad joke.
That was one of the reasons to buy this template.
Best regards.February 26, 2021 at 12:33 pm #269508
Aizaz Imtiaz AwanKeymasterHello,
Sorry for the last message, I think I misunderstand your issue, you can hide the sidebar for the shop page from Edit the Shop page >> Sidebar Options >> Select the Sidebar Position as Without. Please see the screenshot for clarification: https://ibb.co/bBThdJX
Best Regards.
February 26, 2021 at 1:14 pm #269530
StubbiParticipantHi, thanks for reply. I’ve already tried that.
I have set on the shop page that the categories are displayed. If I deactivate the sidebar on the page, it won’t appear on any other page.
I would like that when the visitors click on the shop page, only the categories without a sidebar are displayed. If you then click on a category, the articles should be displayed with the sidebar. Just like on your demo pages.Best Regards
Attachments:
You must be logged in to view attached files.February 26, 2021 at 1:24 pm #269538
Artem TemosKeymasterHello,
Sorry for the inconvenience, but this page is made for demo purposes only with custom coding. We will add a dedicated option for this in our next theme update.
As for now, please, send us your shop page link so we can check it and give you a custom solution.Kind Regards
February 26, 2021 at 1:48 pm #269545
StubbiParticipantHi,
OK thanks for the help. The Data is in private content.
Here you go.Kind regards
February 26, 2021 at 2:33 pm #269551
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to do this
add_action( 'wp', function() { global $xts_woodmart_options; if ( is_shop() ) { $xts_woodmart_options['shop_layout'] = 'full-width'; } }, 10 );
February 26, 2021 at 2:48 pm #269556
StubbiParticipantHi,
That works great. Thanks alot! One more Question:
Would that also be possible if you first display the sub-categories instead of the products after the categories? Would be nice if you have a lot of sub-categories. But again, thank you very much and have a nice weekend.Kind regards
February 26, 2021 at 2:50 pm #269557
Artem TemosKeymasterHi,
Could you please send us a link to this page so we can check? Or you don’t have such an example yet?
Regards
February 26, 2021 at 2:56 pm #269559
StubbiParticipantHi,
attached a link.
I have activated the display of the subcategories after the Categories.Kind regards
February 26, 2021 at 3:10 pm #269562
Artem TemosKeymasterSorry, but we can’t identify this page and hide the sidebar only in case if subcategories exist. We can do this for the shop page root.
March 1, 2021 at 7:12 am #269996
StubbiParticipantHi,
everything OK. You can close the issue. Many Thanks.
best regardsMarch 1, 2021 at 7:19 am #270004
Artem TemosKeymasterYou are welcome! Feel free to contact us if you have any questions.
-
AuthorPosts
The topic ‘Remove sidebar only from categories page’ is closed to new replies.
- You must be logged in to create new topics. Login / Register