cancel
Showing results for 
Search instead for 
Did you mean: 

Can I force a layout on a single page?

Can I force a layout on a single page?

Hey, 

 

We installed a module and we edited the xml and now the sidebar does not show, that's supposed to happen, but we need to, for that page, to make the theme be 1 column so it occupies all page since the sidebar it's just a black space now. It's from a module so we can't edit the layout on the backoffice but it comes with this on the xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

But if we inspect it has the class page-layout-2columns-right

 

Is it possible to change this?

 

Thanks!

Best regards,

Rui Silva

4 REPLIES 4

Re: Can I force a layout on a single page?

You can use ConstraintLayout. . Constraint layout works with screen ratios and (almost) always will represent your layout in the same way. Also try to use DPs whenever you can and try to create a dimens.xml resource for each screen density.

Re: Can I force a layout on a single page?

Is this solution is worked for you or not UPSers Login

Re: Can I force a layout on a single page?

yes this worked for my website. thank you 

Re: Can I force a layout on a single page?

I am still searching for some proper solution.