Questions tagged [theme]

Questions about creating, modifying and configuring Magento themes

Filter by
Sorted by
Tagged with
81
votes
4answers
27k views

Fundamentals for debugging a Magento store

How can I debug my Magento store This is a question that isn't all too relevant to us now, but had a Magento SE site existed 5 years ago, it probably would have been our first question. For those ...
73
votes
19answers
77k views

Required parameter 'theme_dir' was not passed

What is the error message: Required parameter 'theme_dir' was not passed Is it related to in Magento 2? And how can this problem be fixed?
37
votes
1answer
26k views

How do you override LESS in a custom theme?

I've spent the better part of this week trying to find a clear guide on how to properly create a custom theme and extend exist LESS/CSS without having to copy the entire magento-blank theme. The ...
35
votes
7answers
35k views

Move all Javascript includes to before </body>

Does anyone know how to have all of Magento's JS script tags e.g. <script type="text/javascript" src="http://sitename.com/js/prototype/prototype.js"></script> render out before the closing ...
31
votes
1answer
5k views

Magento 2 - Theme Type 0:physical, 1:virtual, 2:staging. When to use?

In the theme table there is a type field with 3 possible values: physical, virtual and staging. When to use physical virtual and staging theme? When I extended luma theme my new theme appear in ...
30
votes
2answers
6k views

Theming - starting from scratch

What is the preferred method of beginning a full site build, from scratch? My builds typically begin from fully mocked-up HTML5 wireframe pages, and we plug in functionality from there. But, part of ...
29
votes
3answers
31k views

How to implement translations in design template package CSV's? How does echo $this->__('Text') work?

I have a design package setup like so: design/frontend/package_name/theme_name/locale/ under which I have de_DE, en_GB etc, under which I have corresponding translate.csv files with the various ...
28
votes
4answers
19k views

Theming for Magento 2 - Starting from scratch

Some of you probably read that topic regarding theming from scratch for Magento 1: Theming - starting from scratch I was wondering, what would be the best practice to develop a theme from scratch for ...
28
votes
2answers
55k views

How to use jquery library in Magento 2?

I am creating a Magento theme where I need to include jQuery. When I add this <link src="js/jquery-1.7.1.js"/> in head. It is working but Magento javascript functions are not working. How to ...
26
votes
3answers
5k views

When to use 'name' and when to use 'as'

I've found that when trying to use the unsetChild method, sometimes I have to use the 'name' attribute and others 'as'. It seems that if a block is added normally, you use 'as' but if it is added to ...
24
votes
5answers
18k views

Get product attribute in cart in Magento2

I'm trying to grab a product attribute in the cart template. But I just does not work! The attribute is set to Visible on Catalog Pages on Storefront = yes and Used in Product Listing = yes I use a ...
24
votes
3answers
20k views

Something went wrong while saving this configuration: Area is already set

I am unable to apply a new theme in a clean install of 2.2.4. Upading to 2.2.5 does not fix the problem.
22
votes
4answers
44k views

Best Practices Way to Edit Magento Top-Links

Let's say we want to add a shopping cart icon right before the "My Cart" link on Magento's top links (see top links below). What is the best way to do this? Do something to toplinks.php? Do ...
21
votes
2answers
7k views

Difference between <remove name=”" /> and <action method=”unsetChild”> in layout

What is the difference between <action method=”unsetChild”> and <remove name=""/>? Both functions are used to remove a block from the layout. Could someone explain with an example?
20
votes
4answers
21k views

Magento 2: requirejs-config.js in themes?

Is it possible to include a requirejs-config.js file (or otherwise configure RequireJS) via a Magento theme? Or is the capability reserved for Magento modules? The dev docs information on theme ...
18
votes
4answers
16k views

Magento2.1.0 showing error Required parameter 'theme_dir' was not passed while saving product in admin

I am facing this error Required parameter 'theme_dir' was not passed when i try to save the product in admin. I checked the theme configuration it was assigned to the stores. Recently i have upgraded ...
18
votes
1answer
3k views

How to hole-punch full page cache without custom module

Our full page cache seems to be based on session. If I open an incognito window with chrome and visit one of the pages, it warms the cache, and the second page load is much faster, however, if I close ...
17
votes
4answers
83k views

Current Skin Url

I want to get skin URL of my current theme. At present I am working in Magento "rwd" theme. And I am using below code to get skin URL: Mage::getDesign()->getSkinUrl(); This returns me URL http://...
17
votes
2answers
4k views

What does the “exclude” Tag in Magento 2's view.xml file do

The Magento 2 "blank" theme includes the following tag hierarchy. <exclude> <item type="file">Lib::jquery/jquery-ui-1.9.2.js</item> <item type="file">Lib::jquery/...
16
votes
7answers
39k views

How to override .phtml files in Magento 2

I want to customize product details page, So it required to override some .phtml files in following locations. So I want to know, how to override .phtml files in vendor\magento\module-catalog\view\...
15
votes
2answers
11k views

What is the correct way/approach to modify a Magento template?

Please suggest me the right approach, I want to customize the "EMAIL to Friend" page into pop up window, when user click on the button (email this product). By enabling template hinting, I found out ...
15
votes
1answer
7k views

Best way to extend module less found in web/css/source/module, like _minicart.less?

Which is then the best way to extend less files content in <module>/web/css/source/module/, like for instance Magento_Checkout/web/css/source/module/_minicart.less? Assuming that to A) ...
15
votes
3answers
3k views

Magento2 design fallback logic

We already know design fallback logic from Magento 1.x: Current package / Current Theme Current Package / Default theme Base Package / Default theme Now. i want to know What is the design fallback ...
14
votes
4answers
28k views

How to override blocks in v2.1

I'm trying to override the Topmenu block in Magento 2.1 but can't find any guide to do so. Everything I've found on here and elsewhere either seems to apply only to version 2.0 which appears to use a ...
14
votes
3answers
1k views

Is there a local theme layout XML file other than local.xml?

I've built a theme by creating and editing the following file: frontend/mypackage/default/layout/local.xml I have a store view "site1", and wish to make exceptions on the default local.xml of "...
14
votes
2answers
4k views

Correct way to Update a Theme's Parent in Magento 2

In Magento 2, you can specify a parent theme in a theme's theme.xml file. <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/...
13
votes
1answer
6k views

Magento 2 custom theme layout xml and css not working

I created a new theme and it was working fine but after a few days, I realized some things weren't working. default_head_blocks.xml is no longer pulling in any css files that I include (both hosted ...
13
votes
6answers
16k views

How to remove Company field from checkout process in Magento 2?

How to remove Company field from checkout process in Magento 2? I've been looking for the template but have not found it. Update: Is there any way to remove this field via layout or template?
13
votes
2answers
11k views

CMS XML Handles for Layout Updates

I've had a few scenarios where I've tried to use the cms handles to update a cms page's layout. For example I was trying to use the cms_index_index handle referencing root and setting the page ...
13
votes
1answer
2k views

Multiple local.xml layout files in a package

Say there are two themes in a package: Base (Set as default) Child (Set as main theme) Both contain a local.xml in the layout folder - Only the local.xml from the Child theme will be loaded, so any ...
12
votes
2answers
11k views

Magento2: Default to sort by price descending not ascending

Ok so I have my categories sorting by price. Magento 2 defaults this to price ascending. But I would prefer it to be by price descending. Pretty sure I can do this by customising ...
12
votes
4answers
15k views

Magento boilerplate / blank / skeleton / naked themes for theme development

Does anyone out there know of a good, clean boilerplate / blank / skeleton / naked theme (unsure of the proper term myself) besides the base/default? Not that it is bad, but sometimes another one may ...
11
votes
6answers
14k views

theme is not showing in admin panel list magento2

i just create new test theme but it is not showing in admin panel theme list app/design/frontend/Magento/mytheme/theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
11
votes
5answers
31k views

How to call Owl Slider in Magento2

If we want to add Owl Slider in Magento 1.X then we follow below steps. Copy owl.carousel.min.js and owl.carousel.js and paste into skin/frontend/pakage_name/theme_name/js Copy owl.carousel.css and ...
10
votes
1answer
6k views

How to add “Empty Cart” button to minicart

How can you add an "Empty Cart" button to the minicart in Magento 2. Is it possible with layout xml?
10
votes
6answers
2k views

Magento 2 - Overriding CSS without using !important everywhere

I'm working on a Magento 2 site at the moment for a client. Suppose my client's brand is boofar and the theme I'm trying to extend/override is foobar I've set as the parent theme using frontend/...
10
votes
1answer
3k views

What are the theming limitations of Magento Go? [closed]

I'm familiar with Magento CE/EE, but I'm looking at Magento Go for a new project. The official website doesn't include a lot of details about what is/isn't possible to achieve design wise. Is there ...
10
votes
1answer
4k views

How to change theme in Magento 2.1rc3?

I tried both Magento v2.1rc3 and Magento2 develop version from git repository. Problem is that when I tried to change Magento 2 theme, I followed below steps: Open BO -> Stores -> ...
10
votes
1answer
13k views

How to extend the Luma Theme? [duplicate]

I am trying to extend the Luma Theme in Magento 2, But it does not work as expected. I added my Theme, let it extend from Luma, flushed all Caches, Published all Statics and activated the ...
10
votes
2answers
3k views

How to create theme in magento 2 stable version?

How to create theme in magento 2 stable version? There are tutorials available for Beta but not stable. The steps I took are as follow :- Created folder inside app/design/frontend/Themevendorname/...
10
votes
2answers
679 views

CMS Preview without styles when using custom theme

I use magento EE 1.13.1.0 with custom theme which is set in System->Configuration->Design->Default. The issue appears when we use Magento CMS Preview. It is displayed without custom theme styles, ...
9
votes
2answers
671 views

Why use a theme when you have modules?

Inside of my custom module I have added the file Vendor/Theme/view/layout/default.xml which I am using to override a lot of the site's global templating with templates/blocks/layouts from the custom ...
9
votes
4answers
2k views

Magento 2 How to override vendor/magento/magento2-base/lib/web/css/source/lib/_navigation.less?

How Can I override vendor/magento/magento2-base/lib/web/css/source/lib/_navigation.less file in my custom theme ?
9
votes
4answers
7k views

How to create admin theme for Magento2

This method works for Magento 1 but not for Magento 2 (version 0.42.0-beta10): http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/admin/using_custom_admin_theme_templates
9
votes
2answers
9k views

How to enable custom admin theme in Magento 2

I have followed the instructions here: How to create admin theme for Magento2 and here: How to change backend admin theme in Magento 2.0.7 + and I still dont understand what I'm supposed to do to ...
9
votes
1answer
3k views

decorateTable javascript function for what it is used?

In magento on cart page there is a javascript function call decorateTable('shopping-cart-table'). For what is used the function decorateTable?
9
votes
3answers
11k views

Magento 2: How to override Luma Theme Home Page

I'm using Magento 2 CE Version 2.1.0 on WAMP Windows 10 I already referred Magento 2: How to override mini-cart default template html file? Would like to override Magento 2 Default Luma Theme I ...
8
votes
3answers
7k views

How to get store config inside a theme template

I am trying to add the store's phone number setup in Stores > Configuration > General > General > Store Information to the header in my theme. In a module I think this could be done using getValue() ...
8
votes
2answers
4k views

Is there any way to set different theme depends on customer group?

I want to show different theme depends on customer group.Is there any way to set different theme dynamically? For Eg.: Theme A for General customer group and Theme B for Wholesale customer group. ...
8
votes
4answers
9k views

Moving the category toolbar out of product/list

I'm trying to move the toolbar that shows the sorting options and the pager out of the product list so I can bundle it with the breadcrumbs and the category name. I found this site that worked for ...

1
2 3 4 5
29