Questions tagged [page-layouts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
20 views

Magento 2 How can I add 2columns-left in container area like the one I have shared

I want to add 2 columns one for the menu and other for the text in container Page.top is the menu container which I have move into a new container Now In that new container page top after banner I ...
0
votes
1answer
32 views

Magento 2 Move Short Description below product image

I am new to magento2 and I have very few knowledge about it, I am using Porto theme on magento 2.3.0 CE. I am trying to move the short description under the product image. Here is what I have : Here ...
0
votes
1answer
19 views

Important div tag commented out when on production mode

We noticed that some of our page layout has been broken. Did some debugging and found out that when in production mode there are some errors with the tags. Specifically: <!--?php <?php <?...
0
votes
1answer
42 views

Magento 2.3.3: Does catalog_product_view.xml not pass down containers to specific product types?

I have created a catalog_product_view.xml in my theme and when I go to create a widget and select all product types in the layout updates section I can see my custom container I created. If I then ...
0
votes
0answers
6 views

What should I do to edit the page in the background and open it in a new window when I hit Tab

When developing background management and editing page, click Tab on the left, magento2 opens under a window by default, now I need to switch Tab to open with a new window, what should I do? Here is ...
0
votes
0answers
24 views

How do I refresh data when I hit Tab on the left in magento2

When developing editing pages of background management pages, currently magento2 does not refresh the data when switching different Tab pages. I want to refresh the page data when switching tabs. What ...
1
vote
1answer
63 views

Page Title Move for All Pages - Magento2

<div class="columns"> <div class="column main"> <div class="page-title-wrapper"> <h1 class="page-title"> <span class="base" data-ui-id="page-title-...
0
votes
1answer
36 views

Magento 2 - what is the difference between layout and page_layout?

I want to override page_layout file product-full-width.xml I was trying to override this in app/design/frontend/Company_Name/Theme_Name/app/design/frontend/Company_Name/Theme_Name/Magento_Theme/...
0
votes
2answers
40 views

product detail page - move block to primary product container

I would like to move the static block (a custom block from infortis ultimo theme) block_product_secondary_bottom to the container_product_primary_1 container after product.info.price. How do I do that?...
0
votes
2answers
141 views

Magento2 Move static block to above footer and below main content

In my magento2 based website I have a static block that i want to load right before the footer block but below the main content of the page. I have tried the below but that did not seem to make it ...
0
votes
0answers
27 views

Product page layout based on product option

I am fairly new to Magento 2 and I need to create 2 product page layouts. I have created the default layout, however I need to have another layout based on an option that is selected within the ...
0
votes
1answer
33 views

Magento2 - Modify surrounding divs of layouts

I'm using the 2columns-left as a layout for my category pages and I want to modify these divs, change their classes, without having to add javascript afterwards. I can already modify the templates ...
0
votes
0answers
7 views

Product image not shown on product page if I use custom layout in Magento 2

Product image not shown on the product page if I use the custom layout in Magento 2 I have created a custom layout Mytheme/theme/Magento_Theme/page_layouts/special-page.xml <?xml version="1.0"?&...
0
votes
2answers
50 views

How i Can Move Side Bar to Right on My Account Page

I want to Move Side-bar on My Account Page to Right On The Basis Of Admin Configuration Value After Some Research i found that it can be done by setting Page layout="2coloums-right" i saw Lots of ...
0
votes
2answers
58 views

Magento 2 - Site not loading properly in Developer mode

I am working on M2 and I've set M2 developer mode. My site home page works fine but the other pages are not loading. They just show errors and warnings on inner pages. Screenshot:
0
votes
1answer
22 views

Magento 2 - Admin product page layout issue

I am facing an issue while trying to go on the product page from a catalog in the admin. The product page grid layout not loading properly. Every time when I clear cache, page load correctly. What is ...
0
votes
1answer
25 views

Failing to remove page title

I'm trying to remove page title added from Magento\Downloadable\Controller\Customer\Products::Execute public function execute() { $this->_view->loadLayout(); if ($block = $...
0
votes
1answer
46 views

Change page layout dynamically depending on url parameter

The standard layout of my categories is 2-columns-left so that the layered navigation is visible in my shop. What I want is, to use the same categories to display content. This is an example for my ...
0
votes
1answer
25 views

Wrong Layouts in Magento2 Adminhtml

I noticed a strange behavior in a M2 System, I think this is related to a 3rd party module. All layouts which should be 1column layouts are 2 column layouts actually so something overwrites the ...
0
votes
0answers
83 views

2 columns-left category product list page layout, how to change left side bar width?

The left side bar width for the category product listing page is now became smaller, i'm not sure how it has been changed. I believe not in "catalog_product_view.xml", and i can't find another other ...
0
votes
1answer
98 views

How to center a block on a page?

I have a block with a visual menu in it and I want to show up centered on the page. This is my css within the block: .container{ margin: 0 auto; text-align:center; } I've also tried to put the ...
2
votes
3answers
38 views

Move block and set template

I succesfully moved the product related block in my page layout with <move element="catalog.product.related" destination="product.info.right" after='-'/> I want now to apply a custom template ...
1
vote
1answer
35 views

Move theme layout elements on a product view from within a Module Magento 2

I am having trouble moving the short description on the product page. I tried with the move command within the layout file without any luck. I can move any new created block where I want but I can't ...
1
vote
1answer
19 views

Magento : Is the layout reference scoped for an specific handle?

When I put the following block inside catalog_category_layered handle, it works and I can call it by getChildHtml(). But when I insert it in default handle it doesn't work at all. Is the catalog.layer....
1
vote
1answer
358 views

Magento 2 Add css class to <a> tag in customer account navigation

I try to assign a CSS class to navigation ( tag) under customer account page. I found this file customer_account.xml, and I added <argument name="css_class" xsi:...
1
vote
1answer
220 views

How to create custom 403 error page in magento2

How can I create a custom error pages in my Magento 2 site. For example this pages: 500, 401, 403, and 404. I tried for create block: $layout = $this->_view->getLayout(); $block = $layout-&...
2
votes
1answer
269 views

Magento 2 product page include custom phtml file before reviews section

Can anyone help me how to include custom phtml file before reviews section in magento2 please find the screenshot below: When i click on the button it is going to add to cart. Thanks
0
votes
1answer
182 views

Magento 2: How to add block inside block html content through XML file

I have created my custom arithmetic captcha. I want add that captcha to my custom form through xml file without defining in phtml file on custom layout. For example: Testimonail submit form: ...
0
votes
1answer
79 views

Magento 2 Block class instantiate issue

I am using Magento 2.2.6. In my custom module I add catalog_category_view.xml add a block <?xml version="1.0" ?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
1k views

Magento 2 custom layout full width

I created a new custom page_layout that I want to make full width. My fullwidth-layout.xml file looks currently like this. But I want to make the main content full width. So that I can set this ...
0
votes
2answers
454 views

Magento 2 add new argument in the reference block and get into the phtml

I am working on reference block concept, in that I need to add new arguments and get the argument value on the .phmlt file. in catalog_product_view.xml I've added the below line of code. <...
1
vote
0answers
57 views

Magento 2 - CMS Specific page_layout XML and Dedicated page_layouts in general?

I'm looking for some BEST PRACTICES insight into using page_layout.xml. Is it a good idea to try and decouple the non-shared resources on Product Pages, Category Pages and CMS Pages? If so, what's the ...
0
votes
1answer
51 views

Custom Layout Update on product not working for description and short description

We're using Magento 2.2.6. If we create a custom layout update for the description and short description of a product nothing happens in frontend. Still the old fields are outputted. How can we ...
0
votes
1answer
246 views

How do I display a custom grouped product page layout?

I would like my Magento 2.2.6 store to have two grouped product pages. For some grouped products I would like to use the existing default grouped product layout that ships with Magento 2. For other ...
0
votes
1answer
464 views

Magento 2 - Move Block Not Working

I've created a faqs.xml for a bespoke page template and this is my code: <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
1
vote
2answers
55 views

Change page layout for all products

I need to change all my products to the page layout "2column left". Now is everything set on 1column. How can I do this in one step for all the products?
0
votes
2answers
706 views

Magento 2: How to change page layout from to 1column

What's up guys, i know this is some kind of basic question, but here's the thing, i can't change page layout from catalog_product_view.xml to 1column. I've try using new custom theme, and EVERY ...
0
votes
0answers
73 views

Magento 2 layout xml is not working

I am creating page layout using xml <referenceContainer name="content"> <container name="page.container.main" htmlTag="div" htmlClass="page-container-main" before="-"> <...
0
votes
1answer
277 views

How to include LESS in specific page layout

I have created my custom page_layout in magento 2 and now I want to add some less only in my page_layout. I don't want to load those less file in other layouts. How I can achieve it?
0
votes
1answer
342 views

How can I change more images thumbnail image placement on product page?

I want to show more views images thumbnail in the left of the main image. Anyone please suggest me how can I do that.
4
votes
1answer
936 views

Magento 2 Blank Layout Page

I tried to create a new tab in customer edit backend. First i create the app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
154 views

Magento 2.2 Theme Layout

Can anyone elaborate the theme structure of Magento 2.2. I already refer the Theme document for it. Also I want to change the category page layout so please guide me. Category description block is ...
2
votes
0answers
57 views

1.9: programatically switch CMS page template in Observer

For a bunch of reasons, I'd like to be able to switch a CMS page's template based on some PHP. In config.xml: <frontend> <events> <...
2
votes
2answers
1k views

Magento 2 admin, add new 'Text Field' into order information page?

Using magento 2.2 Admin, I want to add textField into Sale > Order > Information > Order & Account Information like image. How to do?
0
votes
1answer
159 views

Magento2 blank white screen after clicking on custom menu item

When I print anything from controller it works, but when i try to add .phtml with this code, blank screen appears app/code/Company/Configuration/view/adminhtml/layout/configuration_admin_settings....
3
votes
3answers
702 views

How to remove container from homepage only

I added div(container) in every page except homepage like this <main> <div class="myclass"> all content here </div> </main> I tried ...
0
votes
1answer
144 views

Call Menu Block on CMS Page from two column layout to one column layout in Magento 1.9

I am trying to modify one column layout on my custom theme by adding menu block from two column (left bar layout) in Magento 1.9. I added a snippet of advancedmenu block from column layout from 2 ...
0
votes
1answer
392 views

move product overview below product review in Magento2?

help me to move the product overview below product review in product details page like this...and help me to make qty and add to cart button in a single line...
3
votes
1answer
3k views

Magento2 : Get Current Page layout

I have Added Custom page layout in my store.And set Test Category Page But when I try to get my phtml file in category page $request = $objectManager->get('Magento\Framework\App\Request\Http'); $...
0
votes
2answers
2k views

How to change the contents in the header of Magento 2 [duplicate]

I have attached the screenshots images of my store and the model how it should appear. I have to change according to that. can anyone please help how to change or customize the header of the magento 2....