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 [theme]

Questions about creating, modifying and configuring Magento themes

5
votes
0answers
411 views

Magento 2: How to override cacheable=“false” in layout in your own theme

We use a third party extension wich lets us add bundles with specific discounts to product pages. The problem is that they added a default.xml with the following code: <block class="Magedelight\...
5
votes
0answers
2k views

Magento 2: changing custom theme default layout

I have custom theme that inherits no parent theme from Magento. The default layout appears to be 1column, and I am able to make modifications to that column in my custom theme's layout\default.xml ...
3
votes
0answers
371 views

Magento 2: Include header and footer in external php

I want to include header and footer layout of Magento 2 to external PHP file, I am using my own code(external PHP) to make a frontend page. how to add header and footer layout theme in Magento 2 to my ...
3
votes
0answers
539 views

Content > Design > Configuration Blank on new installation

I did a fresh setup of magento2 and upon completion, I couldn't set any configuration options in Content > Design > Configuration. The table rendered with no available results. After trying ...
3
votes
0answers
225 views

Per Store Widget Instance Block References

I have a multi store magento site set up. There is just the 2 Websites and a single store view each. They both use different themes of the same package. Now setting up a block in local.xml of Website ...
2
votes
0answers
22 views

Change theme color from admin dashboard in M2

I want to add an input field that will change the main color of the Luma theme. Could someone help me on what should my custom extension include?
2
votes
0answers
23 views

Finding source of a div “toolbar-top” on inhereted Magento 1.9 Project

I am working on a relatively complicated Ecommerce store on Magento 1.9. I need to add some very simple paragraph text above a toolbar header that floats in the category navigation section of the ...
2
votes
0answers
93 views

Magento2 error after theme upload: Invalid template file

After uploading new theme files (Hebes) to Magento 2.3 installation I receive the following error: 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file:...
2
votes
0answers
62 views

Node modules in theme

I am new to magento and i have researched this issue i am having for enough time to post it here. My goal is to understand how require-js works with node modules. Case: $themeDir = app/design/...
2
votes
0answers
46 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
0answers
621 views

Magento 2 : Disable RequireJS (and all JavaScript)

Is there a way to disable RequireJS completely in Magento 2? I want to build a theme from scratch and I do not want to include any of JavaScript that Magento automatically includes, Including ...
2
votes
0answers
139 views

Porto theme - Product page

My product page is in 3 colums. How do I put all my swatches in both colum 1 and 2? I think I need to close a DIV in view.html. But when I close DIV in view.html - my 3. colum goes down below all. ...
2
votes
0answers
280 views

Custom theme installed via composer require not showing in setup:static-content:deploy or admin panel

I've created my own custom theme and uploaded it to my private package repository. This works fine and downloads my folder into vendor/<vendor>/theme-my-theme I run: php bin/magento setup:...
2
votes
0answers
99 views

Main menu not redirect to url in mobile view

How can I change this in fresh Magento? In mobile view, On click of the arrow, i want to open sub menu list. In mobile view, On click of the main menu tab, I want to open main menu tab URL.
2
votes
0answers
22 views

How to add new theme name to grunt CLI command to run grunt tool in Magento 2 with CLI commands instead of editing less.js and themes.js file?

I read this , But I wanna add new theme name to grunt CLI command with some CLI commands not editing a less.js and thmemes.js manually.Is there any solution for this something Like (magento2 add-...
2
votes
0answers
190 views

Magento 2: How do I modify the layout of all pages using the 2columns-left layout?

According to the Magento 2.1 frontend developer documentation (http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/layouts/layout-types.html#layout-types-page) it should be possible to create a ...
2
votes
0answers
196 views

SyntaxError: Cannot read property 'numerator' of undefined in pub\static\fron \package\theme\en_US\css\source\lib\_responsive.less

SyntaxError: Cannot read property 'numerator' of undefined in pub\static\frontend\package\theme\en_US\css\source\lib_responsive.less on line 44, column 9: 43 @media only screen and (max-width: ...
2
votes
0answers
159 views

Set empty design layout for a controller

I've created a controller that is displaying some html code retrieved from orders.phtml file : <?php class Envato_RecentProducts_OrderController extends Mage_Core_Controller_Front_Action { ...
2
votes
0answers
98 views

Changes to template files not updating in newly created storeview

I am trying to add a second StoreView that uses its own theme and is accessible by a custom URL. For some reason however, I can not get changes to the template files to display in the frontend. This ...
2
votes
0answers
37 views

load style-m only in sub domain but and in main domain load style-l

I was looking forward to load mobile style like style-m.less only to sub domain Ex in m.domain.com Magento 2 will only load style-m.css or style-m.less, and in domain.com Magento will load only style-...
2
votes
0answers
62 views

Different price templates for product listing and product view page

In our theme design the price output is different on product listing and product view page. I found some solutions for magento 1, but can't find any for magento 2. Can anybody please tell how can I ...
2
votes
0answers
356 views

How to proper extend variables and override module style?

I am new to Magento and currently developing a child theme inherited from the Magento blank theme. I read the developer documentation and doing okay. I created my own style.less in my web directory ...
2
votes
0answers
53 views

use checkouts modal login as default

Is it possible to use the checkout model login as default for all pages in custom theme which inherited form blank theme? As I see on checkout site is using some wrapper.
2
votes
0answers
151 views

Slow Magento Theme

A client of mine is using a commercially available theme on his site (Mango by Smartwave) and it is incredibly slow. I enabled the profiler and Mage is taking between 3.8 and 4.8 seconds to load. Here'...
2
votes
0answers
571 views

Magento 2 - Get Category Name in block

I'm trying to get the category name in a block for the home page so that when the visitor changes the language, the name of the category will translate depending on the selected language, like with ...
2
votes
0answers
1k views

Page layouts in Magento 2 — matching old .phtml files

short of it I need to dynamically set the htmlClass of a <container> that is defined in the layout file. <?xml version="1.0"?> <!-- /** * Copyright © 2015 Magento. All rights ...
2
votes
0answers
426 views

Layout handle sales_email_order_items seems to be not triggered in custom module

What I need to do is to change the template on block named "tax" of type "tax/sales_order_tax" on all places where it appears exclude the admin, using custom module. The problem is that I cant make it ...
1
vote
0answers
11 views

Changing theme does not work

I have changed something in my theme, but it does not appear after deploying static files. Removed all necessary folders and cleaned cache but still not working. Strange thing is, that on my test ...
1
vote
0answers
14 views

Undefined variable: _ENV

every time I add the following directory and xml file: public_html/magento/app/design/frontend/Vendor/theme/Magento_Catalog/layout/catalog_product_view.xml Magento returns the following error on ...
1
vote
0answers
22 views

Installation limit on purchased themes for Magento 2?

Is there a limit on the number of stores or sites on which a purchased Magento 2 theme can be installed?
1
vote
0answers
26 views

Magento 2 - Is it OK to remove Magento standard CSS completely?

I'm making a website using my own theme. I wonder if it's an OK practice to remove Magento's standard CSS styles-m.css and styles-l.css, and only using my own CSS? <remove src="css/styles-m....
1
vote
0answers
32 views

How Can we use React JS product View page in magento 2?

I need to do some functionalities in which the page to not load. I prefer to react js but I don't know how to add react js for selected modules of Magento. I need to react for Magento component view ...
1
vote
0answers
20 views

In Magento 2, Can we use bootstrap 3 on Ves Need theme?

Is that fine to use Bootstrap on Magento 2?.
1
vote
0answers
21 views

How to fix My Account menu link in Magento 2.1 after migration from 1.9

We have upgraded our store from Magento 1.9 to Magento 2.1. the My Account is link to /index.php/account it should link to /index.php/customer/account/ We are using Solwin FreeGo theme for Magento 2. ...
1
vote
0answers
246 views

Magento 2.2.7 single product image not showing on front end

I'm developing a website in Magento 2.2.7. I have a problem whereby if I only add one image to a product in the admin area it doesn't show on the frontend, even after trying all of the various ...
1
vote
0answers
18 views

Migrate theme from Magento Community to Magento Enterprise

I am creating a website in Magento2. I am currently working in the Theme Creation. My client suddenly have plans to go to Magento Enterprise/Cloud. Can someone help if my theme will work there or do I ...
1
vote
0answers
78 views

Magento 2: Setting theme ID is not is not working by using config:set

I found xpath design/theme/theme_id in vendor/magento/framework/View/DesignInterface.php:28. I'm trying to set new ID and there is an error: magento config:set design/theme/theme_id 7 The "design/...
1
vote
0answers
37 views

Magento2 unable to load theme error with Custom Admin theme

I have created new admin theme and used in my custom module di.xml file like below: <type name="Magento\Theme\Model\View\Design"> <arguments> <argument name="...
1
vote
0answers
35 views

Issue in Overriding Magento_Contact's form.phtml file

I want to override the form.phtml file from the magento's core contact module using my custom theme. So i created a folder structure like below, app/design/frontend/Ziffity/Weight/Magento_Contact/...
1
vote
0answers
19 views

Magento2 : I want to use admin theme from magento custom module controller

How can I use this url as examplhttp//localhost/m2/seller/account/dashboard (which is from my custom module route/controller/action ) to access admin like dashboard. i.e : I want to use admin theme ...
1
vote
0answers
300 views

Element 'argument': The type definition is abstract

I flow How to add a tab in product details page using Magento 2 admin panel step to add a custom tab and I got this error my file struct catalog_product_view.xml <?xml version="1.0"?> <...
1
vote
0answers
62 views

Magento footer links not removed in custom theme

I create a custom theme based on Luma, with the path like: /app/design/frontend/Theme1/custom/ Now I want to remove the footer links and edit the following file: /app/design/frontend/Theme1/custom/...
1
vote
0answers
56 views

Magento 2 top.links loads and then disappears

I am learning Magento 2 theme and I am playing with layout. My goals is to move account links (Default welcome msg, Sign In, My account etc etc) into the navbar. I used Magento Luma as parent theme ...
1
vote
0answers
29 views
1
vote
0answers
127 views

Flash messages always are empty after call AJAX POST

I used Full Page cache for my page. After I register newsletter I get flash message "successfully" and its ok But after I installed some modules, they can ajax POST and the private-cache-content via ...
1
vote
0answers
228 views

Change default Magento 2 theme to use a boxed layout instead of full width?

Change default Magento 2 theme to use a boxed layout instead of full width? I'd like to change my Magento 2 theme to use a boxed layout instead of a full layout. I've already started customizing the ...
1
vote
0answers
29 views

Custom changes does not apply on magento 2.2

I reinstalled magento on localhost with the old database. Even though all extensions work as they should my changes on the custom theme under //Magento_Theme/layout/default.xml do not apply. All css ...
1
vote
0answers
509 views

Magento 2.2.2 - Change Cart page design as per Luma Theme

My custom theme inherits from Blank and the cart page is seen as below Tried below code and placed under Vendor/Themename/Magento_Checkout/layout/checkout_cart_index.xml <?xml version="1.0"?> &...
1
vote
0answers
27 views

Edit main page layout

I am using Magento 2.2 a purchased theme. I want to edit the main xml layout. which file shall i get to edit? Like I want to edit the homa page main layout structure so where shall i edit the ...
1
vote
0answers
35 views

Theme Integration Problem Frontend

When I Integrate HTML Theme Magento 1.9 For Learning Purpose, I Use Static Blocks For Display Some Content In Frontend, but All Content Are Not Display Properly. it was shown in middle. pls help me, ...