Questions tagged [layout]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

You cannot proceed with such operation, your reCaptcha reputation is too low error when register customer in magento2

I have added login and register form on same login page. But i am getting this error as below You cannot proceed with such operation, your reCaptcha reputation is too low. Before i have two different ...
0 votes
1 answer
1k views

Layered Navigation in Magento 2 Luma template

by default the left Layered navigations are hidden in Luma template. How do I un-hide the it. similar to blank theme.
0 votes
1 answer
66 views

no classes are being updated to body tag on page load in magento 2.3

every thing was working fine and suddenly the alignment of whole page changed on inspecting i found that the classes are not being updated in body tag in UAT on home page the body tag is <body data-...
0 votes
1 answer
2k views

Magento 2 : Edit Product view XML to move element

I want to move the product description to appear right after the short description on our Magento 2.1 product detail page. However My issue is I am not sure what the element name is for the short ...
0 votes
2 answers
3k views

Move logo to center of page

I want to move LOGO of site to center and want to add some text on the place of logo. I am able to add text from file but logo is not moving to center of container. I have extended LUMA theme. ...
0 votes
1 answer
2k views

how i set the checkout cart xml file in magento 2?

This is my code in magento1 <checkout_cart_index translate="label"> <label>Shopping Cart</label> <remove name="right"/> <remove name="left"/> &...
2 votes
1 answer
2k views

Magento2 : How to add <item> in XML <block> <arguments>

I would like to update the following layout .xml : <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <...
5 votes
1 answer
1k views

Magento 2 - assign custom email template to specific payment method

What is the proper way to assign custom email template to specific payment method upon creating an order? For example: When choosing a Bank transfer payment method on the checkout it should send ...
0 votes
1 answer
2k views

Magento 2 customizing category page

I want to customize the category page and I am using the below file path: app\design\frontend\Vendor\Theme\Magento_Catalog\layout\catalog_category_view.xml Below is xml file code: <page xmlns:...
1 vote
1 answer
29 views

Adding layout handles to blocks in cms pages

We have a cms page with a content like this: <p>Lorem Ipsum</p> <div>{{block class="Vendor\Module\Block\Feature" block_id="feature_wrapper_block"}}</div> &...
0 votes
2 answers
1k views

Magento 2 extend styles-m.less

I'm working on a custom Magento 2 theme and I added couple of my own elements in it. When I write (for example): .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) { ...
0 votes
1 answer
2k views

Magento 2 - Full Width Section

If I need to add a new full width section between the main element and the footer element, is there a way to declare something in the theme's default.xml that places it before or after a container?
0 votes
2 answers
3k views

Magento 1.9 : Add Block to One step checkout

I have a extension that shows a price slider for store credit in the Cart. I do not use the Cart and customers go straight to the Checkout. I want to show the slider on my checkout instead. Here is ...
0 votes
2 answers
3k views

Magento 2 Change order of Tabs on product page

I have added catalog_product_view.xml in the location app/code/design/frontend/kh/custom/Magento_Catalog/layout Set the priority for the tabs for the product detail page, but its is not working ...
0 votes
4 answers
2k views

How to add header and footer at sales order print page

I think by not mentioning magento version I made a mistake. This question is related to Magento 2.1.5 I need specific answer regarding How to add header and footer at sales order print page? i.e. /...
2 votes
2 answers
1k views

Magento 2 How to add external Js in a page

I want to add an external js in my home page. The external js loads a popup form in my home page. I have tried the code in phtml file and also in xml file. In both case the form will appear. But some ...
9 votes
1 answer
1k views

Magento 2 - Move the afterMethods item (Discount and Gift Card Code) to the Order Summary sidebar

I would like to move the afterMethods xml item which contains the Discount Code and Gift Card code under the billing-step in the module-checkout/view/frontend/web/checkout_index_index.xml so that it ...
0 votes
2 answers
1k views

How to display contents of a .phtml template file in checkout

I've been trying to add some php logic to view the things I want. I found out that the proper way to do this using a block template in a .phtml file in the /view/frontend/templates folder of the ...
4 votes
3 answers
12k views

How to add extra container to page header in Magento 2

I am working on a new theme which is based on the Luma theme. I need to add a extra container to page header.my problem is that I can't identify how/where to add this. Can anyone advise on what page ...
0 votes
2 answers
1k views

Magento 2 - Block in footer doesn't show

I'm trying to add a block to a template built from scratch. Using template-hints I can see that in the footer the following template is rendered app/design/frontend/Merchant/merchant/Magento_Theme/...
3 votes
2 answers
1k views

How to override layout file, which is already override by other theme - layout\override\base\somel_ayout.xml

How to override layout file, which is already override by other theme. For example, we have existing theme. app\design\frontend\<Vendor>\<themeone>\Module_Vendor\layout\override\base\...
21 votes
10 answers
29k views

Add header and footer in checkout page Magento2

By default Magento 2 don't provide HEADER and FOOTER in CHECK OUT page. So I checked checkout_index_index.xml file on path app/design/frontend/package_name/theme_name/Magento_Checkout/layout/...
1 vote
3 answers
2k views

Magento 2.3 Product Category not showing changes on frontend

I am wondering if anyone can help. I have made some design changes to the following category: https://www.valvesonline.co.uk/manual-valves/ball-valves.html However these changes do not appear on the ...
2 votes
1 answer
1k views

Magento Site Layout Breaks Once a Day - Emptying Var/Cache Fixes

One of my client's websites on Magento 1.9.2.3 has been experiencing a strange error once every day (at random times). Where the site is loaded without any graphical styling no images, no CSS, ...
0 votes
1 answer
1k views

How can I move blocks around in Magento 1.x layout?

I'm trying to move the highlighted div right after the header page div. I'm not sure how I can do this - can someone explain how?
3 votes
3 answers
1k views

Magento 2 : Remove Top Links When Customer Not Logged In

I would like to remove My Account link from top links, when customer is not logged in. How do I achieve it via XML layout files?
13 votes
5 answers
595 views

How to make a module layout to be shown on all themes

Here is the situation: I have several self made modules, all tested and working using the default theme. Then we bought and installed a new theme. Switched to the new theme and the modules are not ...
5 votes
2 answers
1k views

Custom page layout not working

Im going crazy here. Can't get this to work. I'd like to make a custom page layout like the 1column, 2columns-left etc. I've searched and read multiple tutorials all doing the same. Nothing works ...
4 votes
2 answers
5k views

Magento 2.2.2 - Display Customer Account header dropdown and remove Sign Out link post login

After successful login, Luma theme shows customer account details in dropdown on header as seen in below image I need to replicate the same in our custom theme which has Blank as its parent. Vendor/...
1 vote
3 answers
2k views

Search result page blank page

Does somebody know why the xml bellow causes blank page on search result page ? Im using luma theme and have custom theme with Magento_Theme/layout/default.xml. All pages are shown correctly exept ...
3 votes
1 answer
1k views

Magento 2 Init script after page load

Is there any option to init (text/x-magento-init) script after page load? Example, I am working on a simple quickview feature and my controller returns my a layout - phtml file - with rendered html ...
2 votes
2 answers
1k views

Magento 2 How can I remove tabs in order view?

It is able to remove the block by using But how can I remove the tab which is added by using argument? Thanks. <block class="Magento\Sales\Block\Adminhtml\Order\View\Tab\Creditmemos" name="...
2 votes
3 answers
2k views

How to add custom js file after footer in Magento2?

While creating custom theme, I need to add custom js file after footer. How can I do that in Magento2 ...pls help me out?
4 votes
1 answer
2k views

magento2 -custom layout file not loading

i have followed the below link in order to get check if our custom layout xml file is loaded or not using the event: layout_generate_blocks_after In the log file i just get: 2016-06-29T11:07:40+00:...
0 votes
1 answer
2k views

Magento 2 Add block to custom layout via admin panel widget

I've made a custom theme and custom homepage layout that renders a custom container and inside it a block with a custom template: custom_homepage.xml inside Magento_Theme/page_layout folder <?...
3 votes
2 answers
3k views

Magento 2: How to call Widget programatically?

I have created widget Type: CMS Static Block Theme: My Theme Display on: All Pages Container: CMS Footer Links Template: CMS Static Block Default Template Widget Options: Block (My selected block) ...
1 vote
2 answers
1k views

Add block in layout XML only for one store view

I have a Magento 2.1.x installation with two store views. I would like to show a particular block in the footer only for one store view. In Magento 1.9.x I would have done it in this way: <...
0 votes
2 answers
2k views

Magento 2 moving top.search block before minicart

I seem to being having an issue with moving referenceblocks. I have created a child theme based off of Blank. In my default.xml file, I moved both minicart and top.search blocks into header.panel ...
0 votes
1 answer
3k views

Change meta title of customer login page

Trying to change the meta title of the customer login page in Magento2 at example.com/customer/account/login/. Added tag to my xml file but no luck. Please advise. Here's my xml layout: <?xml ...
2 votes
1 answer
1k views

Magento 2 : How To Add Cms Block on Home Page After Megamenu

I need to create a link from cms block to the home page to render the contents in storefront.
4 votes
2 answers
1k views

Not displaying breadcrumbs in Contacts page

In my site, the breadcrumbs are not displaying on the Contacts page. I have added the code for breadcrumbs in contacts.xml (given below), but still not working. <layout version="0.1.0"> <...
1 vote
2 answers
3k views

how to remove phtml file from home page in magento 2 theme

How can I remove a phtml template file from my theme, but only from the home page? My template file is "custome_home.phtml" at app/design/frontend/kalpak/ktheme/Magento_Theme/templates/html
0 votes
1 answer
2k views

how to change text color in category view in magento2

I am trying to change text color in magento 2 for product names and nested names in category view. Can someone point me in right direction.
4 votes
1 answer
1k views

XML - Cannot move product.info.review after product.info.overview

I'm trying to do the following, moving product.info.review after product.info.overview (short description) I've used the following code, but it is not working: <move element="product.info.review"...
0 votes
1 answer
1k views

How to remove Logo and Menu from CMS Page

I am building a page in Magento 2.1.9 from which I would like to remove the logo and menu. Can this be accomplished through Layout Update XML? Below is a sample (blank) page. Thanks in advance! http:...
4 votes
4 answers
2k views

How to call module block after header?

I have a module layout file below <default> <block name="ampromo_notification" type="ampromo/notification" template="amasty/ampromo/notification.phtml" ...
5 votes
3 answers
4k views

$block->getViewModel() returning NULL

I am overriding the layout and adding ViewModel in that layout but when I try to fetch the ViewModel getting below error PHP Fatal error: Uncaught Error: Call to a member function getCodes() on ...

1
2 3 4 5
56