Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [layout]

Denotes the xml files used to define the block hierarchy which eventually renders the template files.

0
votes
0answers
16 views

How to move checkout-agreements before buy now button in billing step in checkout?

How to move checkout-agreements before buy now button in billing step in checkout? Magento version is 2.2
1
vote
0answers
13 views

Changing block location based on size?

I want to have a block (contains a image and some text, nothing overly fancy) appear on the top of the products in a category page when it is on desktop, then on mobile I want it to be on the bottom ...
2
votes
1answer
30 views

Defer JS / CSS Magento 2 via layout files?

After reading a lot of devdocs, I can see there is case for defer in CSS and JS in the manual https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/layout-types.html#layout-types-conf ...
0
votes
1answer
25 views

Add additional tab after reviews

I am trying to have a few more additional tabs added after the Reviews tab, though my tab keeps appearing as the first tab <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
1
vote
2answers
18 views

Move category description from admin panel (Layout Update XML) in Magento 2

Our customer wanted to show category description after the product list by default, so we added a new container and the following line to the default.xml in out theme: <move element="category....
1
vote
1answer
41 views
+50

How to change footer and header for a CMS page only using layout XML?

I want to change out the footer and header for a minimized version but only on a certain CMS Page. Is it possible to do this with the layout XML input field to remove the header/footer and add static ...
0
votes
3answers
35 views

How to move the phone number field from checkout page magento 2

I want to move to the phone field. My XML <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:...
1
vote
1answer
27 views

How to create page in customer account section Magento 2

I want to create new page and link to => HISTORY how i can do this?? where I can add a new link?
1
vote
0answers
23 views

Magento2: Minicart issue on Custom layout

I am using a custom layout for the category page. Here is my code: app/code/Custom/Module/view/frontend/page_layout/equipment.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www....
0
votes
1answer
21 views

Magento2: programmatically add layout for specific products

Good evening. I need to add layout for products, which SKUs start from 9 (so 9XXXX). I've read we can add this though handler or some other methods. If someone had experience with that moment, ...
0
votes
2answers
46 views

Remove merged css and js from layout in magento2

I have enabled js and css merging and bundling from the configuration. we can remove particular js or css using below code. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
79 views

Issue with multiple custom product details tabs not displaying

In catalog_product_view.xml I have the following section: <referenceBlock name="product.info.details"> <block class="Magento\Framework\View\Element\Template" template="Magento_Catalog::...
2
votes
1answer
32 views

Override Magento 2 checkout.cart.methods.onepage.bottom proceed to checkout button Block and template file

I see below configuration in Magento 2 layout at vendor\magento\module-checkout\view\frontend\layout\checkout_cart_index.xml. I created custom module and copied existing Link Block and link.phtml to ...
0
votes
0answers
11 views

Specify Namespace on getLayout()

I'm currently working on a site which is using two store views. For some reason the second store view is throwing an error. Uncaught Error: Call to undefined method ...
0
votes
1answer
44 views

How to use different page layouts depends on base layout specified?

I have to use different page layouts (<page>) depends on base layout (<layout>) specified for a product. For example, if I select a layout in product's 'Design' menu with the name ...
1
vote
1answer
21 views

magento 2 createBlock from argument item

My custom module xml file contains the block code. I want to call that block code directly using createBlock method and set template to show in specific template. My block code is adding animated ...
0
votes
0answers
40 views

How to Remove <uiComponent> Tag

Is it possible to remove this tag which was declared in another extension? <referenceContainer name="content"> <uiComponent name="library_authors_list"/> </referenceContainer> ...
0
votes
3answers
49 views

Add CMS block to bottom of each product list

I would like to add a CMS block to the bottom of each product list whehter it is on a category page or the search result page. Since I would like to add it on every list I'll try to do this via layout ...
2
votes
4answers
57 views

Remove cms block from only cms home page

I have created a cms block and using widget added inside header page container, now I want to remove that block from only home page. How can i achieve this? Widget screenshot to display block
1
vote
2answers
29 views

Adding contents to default customer sign up / create account page - Magento 2

I would like to add a banner image and some contents to default create customer account page at www.domain.com/customer/account/create/, how do i do it? Or Can I add a CMS Page or static block to it?
1
vote
0answers
7 views

Magento 2 add body class into as per current page using toolbar.php plugin for category and search results page

I have created plugin for toolbar.php \Magento\Catalog\Block\Product\ProductList\Toolbar protected function _prepareLayout() { $this->pageConfig->getTitle()->set(__('Category Page')); ...
2
votes
2answers
58 views

Magento 2 : How to update 'Update cart' Button`s Template?

I have develop custom module that can update add to cart and update cart button but I can`t update Update cart button I have update Add to Cart button using catalog_product_view.xml <...
4
votes
2answers
80 views

Magento 2 : How to debug knockoutjs getRegion() bindings

Shipping address is displayed using below knockout js code. I am having a hard time finding the back-end code that's setting data for getRegion('ship-to') function even though I could see the UI JS ...
0
votes
0answers
13 views

Magento 2: Product review page layout gets changed

When I click on "add your review" button of the product domain_name.com/concession-trailer-8-5-x20-black-1599.html it redirects me to domain_name.com/review/product/list/id/1427/#review-form ...
0
votes
0answers
33 views

Added CMS block to contacts page layout XML, but doesn't show up

I am trying to add a CMS static block, to the magento 1 contacts page, in the right column. I've tried adding the following to app/design/frontend/{client}/{theme}/layout/local.xml <...
6
votes
0answers
177 views

Header and footer in an external file

I'm using an index.php file under /pub/custom folder, which is used to create custom designs. This file is completely written in html and javascript. Is there any way to include current theme ...
2
votes
1answer
44 views

magento 2 Infortis ultimo theme display category tree menu on the left of the search result page

I am using the Infortis ultimo theme, in the included feature, i was able to add the category tree menu on the left bar of each category page, but how can i add it to the search result page? is this ...
1
vote
0answers
40 views

How to move product.info.mailto block in custom layout file in magento 2?

In vendor file \magento226\vendor\magento\module-catalog\view\frontend\layout\catalog_product_view.xml I found <container name="product.info.extrahint" as="extrahint" label="Product View ...
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....
2
votes
1answer
57 views

Handling templates without a module name specified

I have a 3rd party extension installed and I needed to overwrite on block because I could not use events or plugins on it. The block is added in the layout file like this: <block class="Vendor\...
2
votes
1answer
23 views

Magento 1.x block data inheritance

I would like to know how does Magento blocks pass data to its child blocks. Example: <reference name="content"> <block type="catalog/product_list_toolbar" name="product_list_toolbar" ...
2
votes
0answers
47 views

Move Elements on Magento 2 Product Page

I have the Porto Theme installed on my website using Magento 2.2.5. I would like to move a couple of Elements on the Product page but only for specific products. I have attached a screenshot of how ...
0
votes
3answers
53 views

How to move notification message top of the page for all page

I am trying to move all notification message on the top below header(or any specific location) I followed this link but this only achieve top for customer page only Magento 2: Change message ...
2
votes
1answer
31 views

Magento custom theme, overwrite block content

I developed a custom theme for Magento 1 for one of my projects. Or tried to follow the guidelines of the communites. I have not overwritten the files {layout}.xml I have created new ones on a module ...
1
vote
1answer
32 views

Add side bar in custom layout in magento2?

I want to display the subcategory and product tabs in category page .So i have customise the layout file . How to do this.. Thanks.
1
vote
1answer
33 views

How to add sidebar in custom layout in magento2?

I want to add sidebar All Product tab in custom layout in magento2? How to do that. Thanks.
0
votes
2answers
68 views

How to rename the product detail tab title, and display as the last tab?

How to rename the product detail tab title, and display as the last tab? This is what i added, but didn't make any effect. the file is at the following location: /app/design/frontend/Infortis/...
1
vote
1answer
26 views

How to override or extend template and layout files for an extension downloaded by composer?

I have an extension that is downloaded through composer, there are two files i would like to update. How to I override/extend the files? what is the correct paths i need to create in app/design/...
1
vote
0answers
31 views

Magento 2 - display custom product details tab conditionally & as an URL

I want to create a custom product detail tab "Q&A" and only display the tab when there is an Q&A questions exist for the product, and the tab will be the hyperlink to the FAQ page ( for ...
1
vote
2answers
97 views

Magento 2: Override XML file from vendor folder to app folder doesn't work/update

I tried to override the XML file by copying the file from vendor/magento/module-catalog/view/frontend/layout/catalog_category_view_type_default.xml to app/design/frontend/Infortis/base/...
0
votes
0answers
9 views

Change UI when changing product custom attribute

I just created several custom attributes for my products and added them to the corresponding attribute set. Is there a way to change how the layout of my custom attributes when I try to edit them ...
1
vote
1answer
52 views

Magento 2.3 - extending layouts in custom theme

In Magento 2.* we could extend core layouts using custom theme, for instance, (assuming our custom theme is named Custom/our_theme) if we want to remove header & footer in customer login page we ...
0
votes
0answers
29 views

How do I create a “floating” widget/block?

I'm trying to create a floating widget/block that can sit over on the left of my website like the attached picture. I want to advertise my catalogue for download.
0
votes
2answers
102 views

Magento 2 - get final prices include tax and round

I've custom block phtml in my old store and I need to be converted to Magento 2. Magento 1.9.x code: $_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(...
2
votes
2answers
37 views

Magento 2 - Best way to check if the current category is child

I want to change the design of my store depends of the categories and subcategories. I need to check if the current category is subcategory and if is subcategory then display something there. I ...
2
votes
1answer
48 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
2
votes
0answers
17 views

Set product attribute “comment” from backend

No time for coding actually, so I just want to ask if maybe someone already has a working solution (w/o rewrites) :) I just want to add a text input field to "edit product attribute" page, that show "...
1
vote
1answer
37 views

Disable sort/filter for existing grid column

Is it possible to disable filterable/sortable for an existing grid column via observer or layout update?
2
votes
1answer
39 views

Magento 2.3 Help removing wasted white space in mobile version

I am sure this is a simple one to answer, if you go to our site www.terabytecomponents.co.uk and open chrome developer tools to switch to mobile view, there's have 2 divs that are creating a white ...
1
vote
1answer
44 views

Removing CSS as part of custom page layout

I have a custom page layout defined as lf_cms in layouts.xml file, and am trying to remove the css file as defined in default_head_blocks.xml and load a new CSS file, except the CSS changes are not ...