cancel
Showing results for 
Search instead for 
Did you mean: 

Remove layout element from just single page

Remove layout element from just single page

Hi all,

In my website it was added the "brand logo" section from admin panel.

 

It is a slider in the bottom part of the page, my need is to mask the brend logo in just one page of my site.

 

The page from which I have to remove the slider is a category referencing a single static bloc.

 

How can I remove the slider from just this page?

 

Thanks.

 

 

 

4 REPLIES 4

Re: Remove layout element from just single page

Hi @filippo_scifo1,

There are different ways to do it.

1. Through CSS it can be hidden but without looking at your page it is difficult to say that.
2. Through code, you can add a category condition to the brand logo section.
3. A configuration can be added to the categories in admin to show or hide brand logo. So that you can show or hide it for any category. It is easy for the admin to control this way.

--------
Give Kudos if it helped or Accept it as solution

Re: Remove layout element from just single page

Hi,

thank for your response, I've already masked the slider with code, but I would like to know how to have same results with admin configuration, could you please explain in deep?

 

Thanks a lot.

 

Filippo.

Re: Remove layout element from just single page

HI @filippo_scifo1,

Please check this link on how to create custom configuration in admin panel.

https://webkul.com/blog/magento2-how-to-add-custom-module-configuration-in-configuration-section-usi...

--------
Give Kudos if it helped or Accept it as a solution

Re: Remove layout element from just single page

Thank you very much, even if I'm using Magento 1.8.1 in production Smiley Sad