Stack Exchange Network

Stack Exchange network consists of 174 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
9 views

Change My Account side bar <li> links to a dropdown

I have to change the sidebar links to my own dropdown, How would I achieve that, I have to remove the sidebar from mobile view and add dropdown of those same data of sidebar. How to achieve that, ...
0
votes
1answer
11 views

Custom layout extending 2columns-left.xml problem

I'm trying to create a custom layout based on 2columns-left.xml. The layout was created correctly and I can select it from the Admin. This is what I did so far: I created the layouts.xml file THEME/...
0
votes
1answer
18 views

Editing `My Account` sidebar in magento 2

How can I edit sidebar and delete few nav links I turned on the debugger hint, which shows me the various path, but I am not able to figure out how can I edit those nav links Closest I came to ...
3
votes
1answer
23 views

How to change product detail page layout according to product price range?

I want to change product detail page layout according to product specific price range I know it is possible for using product_id and product_sku like below. <catalog_product_view_id_productid> ...
0
votes
1answer
15 views

Mageno 2 - Invalid template file in catalog_category_view.xml

I have a custom template for category page list.phtml in my theme. list.phtml was addressed in catalog_category_view.xml as <?xml version="1.0"?> <!-- /** * Copyright © 2013-...
0
votes
1answer
39 views
+50

override wysiwyg_images.files

I try to override Magento_Cms::browser/content/files.phtml but when i test , the block is dont display , and i dont know why i have the next extructure <Vendor>_<Module> ├── <Stuff&...
0
votes
1answer
29 views

Magento 2 how can i add block in core layout

I am trying to load my block and template in my custom layout file as per below script but it's not rendering Core Layout sales_order_create_index.xml :- <body> <referenceContainer ...
0
votes
1answer
13 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
0answers
23 views

Move element is not working as expected in magento 2.1

In category_catelog_view.xml I need to move a custom layered navigation above the product grid. I tried all of the listed below <move element="custom.left.layered_nav" destination="content" before=...
1
vote
2answers
70 views

Load custom block in category list page magento2

I am trying to add custom template file in category list page. app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view.xml <referenceContainer name="content"> <...
0
votes
0answers
24 views

Change Module position in xml

I used a module Product Videos in Magento 1. I like to show a videos in description tab ? It is possible ?
1
vote
0answers
17 views

Magento2: How can I add Magento_GiftMessage to checkout (billing step > afterMethods)?

I want to add the "Gift Options" (Magento_GiftMessage) to the checkout billing step. Currently it's displayed only on cart page: & I want it (also) on checkout, under the payment methods list. At ...
0
votes
1answer
35 views

Magento 2 Hide or remove a ui element column

I want to remove a column from the admin grid. This is the column: <column name="ip"> <argument name="data" xsi:type="array"> <item name="config" xsi:...
0
votes
1answer
39 views

Magento 2.2.6 - Change the product name title

how I can change products name attribute. I create a new attribute second_name and I assigned to all products, now I want this attribute to replace the default name attribute. I need to change this on ...
0
votes
1answer
27 views

error when creating a new container inside page.wrapper in magento2

I'm trying to create a container inside page.wrapper to contain some custom blocks for my checkout page. When I try the following in app/design/frontend/MyTheme/myname/Magento_Theme/layout/...
1
vote
0answers
18 views

How to modify part of the design of the details of the article magento 2?

I want to be able to modify a part of the page of the details of the products of magento 2 The marked part is the one that I want to be able to edit, add or remove content is that section. So far I ...
2
votes
3answers
51 views

catalog_category_view.xml - Layout file not working

I have created a catalog_category_view.xml file: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:...
0
votes
0answers
19 views

magento2 How can I override root.phtml in custom controller?

Is there any way I can override root.phtml in my custom controller only? Something like this from M1: <?xml version="1.0" encoding="UTF-8"?> <layout> <mycustommodule_index_index&...
1
vote
2answers
41 views

Template doesn't load on custom theme

I have a problem with loading a new template on payment methods section on checkout, but only on my custom theme. I have created a custom module that adds a new block with template in the above ...
1
vote
1answer
36 views

Magento 2 move reviews form inside list.phtml file

By default magento 2 review structure is like this - /templates/review.phtml and inside it you have - /product/view/list.phtml and Magento_Review/templates/form.phtml files. form.phtml file is ...
1
vote
1answer
32 views

How to change welcome text in Magento 1.7?

I'm trying to change the color of the welcome text, and I have found the place( Configure-design) to change the actual text, but no way to change the color. Any ideas about where to look?
1
vote
0answers
14 views

frontend layout handle not working

frontend layout handle not working other than default.xml. Folder structure: Namespace Mymodule Block view frontend layout default.xml -- loading ...
0
votes
0answers
12 views

How can I add a UI component to a renderer of a payment method?

The task is simple: I want to add a select UI Component to a renderer for a payment method. Rather than copy/pasting HTML code into my own html-template, I want to use the built-in UI components ...
1
vote
1answer
27 views

Magento 1.9 layout getChildHtml not loading

For some reason my childhtml is not loaded inside a template file. I updated my local.xml file with: <catalog_product_view> <reference name="product.info"> <block type="...
0
votes
1answer
34 views

Magento2: How to put logo in other location

I want to put logo here: [![enter image description here][1]][1] Here is code header: <?php $welcomeMessage = $block->getWelcome(); ?> <div class="header-container header-style-20">...
1
vote
0answers
23 views

Magento 2 - How to make responsive layout using child theme css?

How to override styles-m css to set responsive layout? I just add custom blocks in footer area which are not responsive in mobile view. How to override styles-m in Luma child theme? Thanks
0
votes
1answer
31 views

Magento2: How to move header-bottom to top

I am trying to move the header to the top of the page. I'm use in default.xml <move element="header-bottom" destination="header-top" as="new_alias" before="header-middle"/> But without a ...
0
votes
3answers
40 views

Magento 2 Add block before another block using XML

I want to move minicart block to top.links block. This did the trick for me: <move element="minicart" destination="top.links" /> Now, I added a custom block with custom .phtml file to the top....
1
vote
1answer
36 views

Removing “category.description” block

I'm trying to remove the description block via: app/design/vendor/module/Magento_Catalog/layout/catalog_category_view.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
49 views

Magento 2 Sequence - Multiple Modules Overriding Same Template

I am using Magento Commerce 2.2.6 running in developer mode. I have multiple modules that are overriding the same template via the setTemplate action in layout xml. I am using sequence in the ...
0
votes
0answers
13 views

custom layout applied from category not loading when accssing from direct URL

I am applying custom template updates inside admin pannel and selecting "apply to product" as "yes". So far so good. When I load a product going all the way from navigation and selecting product from ...
-1
votes
0answers
17 views

M2 - White screen shows when a custom layout loads

I followed this post. However, I am getting a white screen on the Tier 3 category pages. Troubleshooting steps: Cleared the browser cookies/cache. Flushed the cache using php bin/magento cache:flush ...
1
vote
1answer
25 views

How to write that layout XML in a template file?

This is my layout XML: <block type="amazonpayments/pay_button" name="product.info.addtocart.amazonpayments" template="creativestyle/amazonpayments/pay/product/button.phtml" before="-"> ...
0
votes
1answer
73 views

Magento 2- How to move custom options after cart button?

I want to move custom options below Add to Cart button and also want to move short description within form tag.How can I achieve this? Also I want to know why my custom php code not working in ...
2
votes
1answer
58 views

Module custom page 404 error

An extension I'm using creates two custom pages in website: app/design/frontend/mytheme/default/layout/scommerce_competition.xml <?xml version="1.0"?> <layout version="0.1.0"> <...
1
vote
2answers
72 views

Magento 2.2.6. How to show custom text after tabs section in product page?

I want to show custom content on product page below the tabs section. Basically I moved tabs and related product section in product info main area (right side) and now I want to add a custom content ...
0
votes
2answers
32 views

Magento 2: Override radio.phtml for bundle

I would like to override the output of a radio button rendering for a bundle in Magento 2. In catalog_product_view_type_bundle.xml I found the following code: <referenceBlock name="product.info....
1
vote
0answers
29 views

Magento 2: understand processing order of layout handles and other directives?

I am preparing for certification on Magento 2 and I am having difficulty understanding this questions. Can anyone help me with these questions? Understand processing order of layout handles and other ...
0
votes
2answers
90 views

Magento 2: How to move breadcrumbs and sku before product title?

I am trying to move breadcrumb and SKU to show above the product title using xml. Like <move element="breadcrumbs" destination="product.info.main" before="page.title.wrapper" /> But ...
0
votes
0answers
19 views

Magento 2: How to change the custom filter price in navigation filter?

I have trying to change this code but I can’t do this ?? please tell me how to change custom price in this types??
0
votes
1answer
28 views

Magento 2 - Add additional text before attribute

I use this code to display brand attribute value in the product view page: <referenceContainer name="product.info.main"> <block class="Magento\Catalog\Block\Product\View\Description" ...
1
vote
0answers
27 views

Breadcrumbs on pages other than category/product detail

I've already seen a few posts here how to add breadcrumbs on pages like customer page or contact page (like this or that). But is there any way to add them to all pages that are missing them without ...
0
votes
2answers
39 views

Magento 2: Calling a cms block in default xml

I am trying to call a static block in the footer block but it does not work. I created a theme and then created a default xml: \app\design\frontend\MyTheme\Theme-frontend-default\Magento_Theme\...
0
votes
0answers
11 views

Magento 2.2.5 Conflict when deleting links from the customer account page

When deleting the following links, the block-wishlist-management block is deleted as well when checking the Wishlists on the customer account space. Why? : <referenceBlock name="customer-...
0
votes
2answers
29 views

Move search form right after top menu in Magento 2.2

How to move mini search form after header menu? I am using <move element="top.search" destination="catalog.topnav" after="-"/> to achieve this but no success.
1
vote
0answers
18 views

Why does Magento have a layout XML media_type meta tag which outputs nothing?

In the DevDocs, Magento details the possible meta tag names available to include in the head layout XML. The explanation for the media_type tag caught my eye: This tag will not render (see \Magento\...
0
votes
0answers
25 views

Replacing Canonical URL in Categories

I'd like to Replace the auto-generated Canonical URL in a Category. Is there a Layout Update XML I can use to remove the original Canonical Link? Adding a Canonical URL I can use the below Layout ...
0
votes
0answers
12 views

Create/update layout send email magento

I have create an email in config.xml <template> <email> <changeprice_tpl module="cp_collection"> <file>alertprice.html</file> ...
1
vote
2answers
92 views

Magento2 move coupon code inside summary

I am planing to move the coupon code section inside the summary page,before that i have moved the summary-section under the item list, and moved the cross-sell section next to summary-section. Now i ...
0
votes
1answer
21 views

Remove all Customer related pages

I would like to remove all customer related pages. I have already removed all links like login / register, but the pages are still accessible via the url (so people with basic Magento 2 knowledge can ...