Questions tagged [theme]

Questions about creating, modifying and configuring Magento themes

Filter by
Sorted by
Tagged with
81 votes
4 answers
29k 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 ...
Ben Lessani's user avatar
  • 17.6k
30 votes
4 answers
20k 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 ...
Raphael at Digital Pianism's user avatar
29 votes
3 answers
32k 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 ...
waffl's user avatar
  • 723
15 votes
2 answers
12k 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 ...
Dimag Kharab's user avatar
21 votes
8 answers
61k 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\...
nuwaus's user avatar
  • 2,314
12 votes
6 answers
50k views

How to call Owl Slider in Magento2

If we want to add Owl Slider in Magento 1.X then we follow the 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 ...
Dhaval's user avatar
  • 1,685
91 votes
31 answers
133k 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?
hakre's user avatar
  • 2,831
36 votes
7 answers
37k 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 ...
Mark Weston's user avatar
9 votes
5 answers
9k 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
Mathieu's user avatar
  • 91
32 votes
2 answers
92k 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 ...
Qaisar Satti's user avatar
  • 32.5k
30 votes
5 answers
25k 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 ...
tecjam's user avatar
  • 4,033
38 votes
2 answers
10k 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 ...
Pawel Dubiel's user avatar
14 votes
4 answers
30k 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 ...
Michael's user avatar
  • 337
40 votes
1 answer
34k 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 ...
andyjv's user avatar
  • 3,232
23 votes
4 answers
45k 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 ...
Raphael Rafatpanah's user avatar
11 votes
4 answers
16k 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 ...
Jackson's user avatar
  • 9,909
8 votes
3 answers
12k views

How to add Qty in add to cart form on Product Listings Page in Magento 2

How can you add a Qty filed to the the add to cart form on the category listings page. With the Luma theme the user only has the option to add one product to cart at a time from the product listings ...
Holly's user avatar
  • 4,873
7 votes
2 answers
32k views

correct way to customize rwd theme ce 1.9

I want to edit some of the theme files without changing the default, but the files of the design/frontend/default/default folder is not overriding this theme. I also tried to create the folder design/...
Eduardo's user avatar
  • 895
2 votes
6 answers
9k views

Magento 2 - Create New Theme based on the blank theme

I'm new to Magento I try to create a new theme based on the Magento blank theme and I follow the Frontend developer guide in Magento web site but I could not inherit from Magento/blank and when I open ...
Salim's user avatar
  • 103
30 votes
2 answers
7k 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 ...
philwinkle's user avatar
  • 35.8k
11 votes
2 answers
11k 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 ...
Kampaviineri's user avatar
3 votes
2 answers
7k views

Magento 2: How to override adminhtml CSS?

I would like to implement a CSS file that contains only the styles that I'd like to override for the default admin theme. For example, let's say I want to change the textarea font to Consolas and my ...
thdoan's user avatar
  • 728
26 votes
4 answers
27k 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 ...
Alana Storm's user avatar
  • 44.4k
13 votes
3 answers
16k 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 ...
caffeinehigh's user avatar
13 votes
3 answers
10k 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 ...
Amy Ling's user avatar
  • 390
11 votes
6 answers
17k 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:...
Qaisar Satti's user avatar
  • 32.5k
6 votes
5 answers
29k views

Magento 2, issue with getting "version" number in file paths

Not my first time to install Magento 2, but something strange this time. I have checked file permission, cleaned cache, deployed again. Files are created in pub/static in expected directories but ...
Zinat's user avatar
  • 2,069
5 votes
2 answers
7k views

How to change backend admin theme in Magento 2.0.7 +

How and what to add to be able to override any of the magento-backend module templates and what is the sequence order of the custom module or theme
ashraf.jabr's user avatar
26 votes
3 answers
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 ...
Glo 's user avatar
  • 699
18 votes
4 answers
18k 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 ...
user avatar
13 votes
1 answer
15k 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 ...
David Lambauer's user avatar
12 votes
2 answers
10k 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?
Holly's user avatar
  • 4,873
8 votes
2 answers
7k views

How to develop theme using twitter bootstrap in magento 2?

Do we have any step by step instruction for creating twitter bootstrap theme for magento 2 or a scratch that was build for the latest release of magento 2. Can anyone suggest good method to start over....
Dev's user avatar
  • 1,144
8 votes
1 answer
19k views

how to create custom layout page in custom theme

I want to create a custom page layout in my custom theme. I have created a custom theme named "ktheme" with a parent theme. I created cutome_home.xml in the layout folder but I am just getting a blank ...
kalpak savaliya's user avatar
8 votes
3 answers
14k views

How to load a specific JS at the end of all other included JS files?

I have a specific fancybox.js file which I want to load at the end of all the JS files included in my local.xml If load order can be changed then how can a JS file be loaded (included) at the end ? ...
Mark's user avatar
  • 529
7 votes
3 answers
11k views

Notification, sudden error: Warning: include(): Filename cannot be empty

Since this evening we are seeing this error. First we see this in error log 2013-08-11T18:46:59+00:00 ERR (3): Warning: include(): Filename cannot be empty in app/code/core/Mage/Core/Block/...
snh_nl's user avatar
  • 5,442
6 votes
1 answer
17k views

Magento 2: How to move Details tab to product info column?

In Magento 2, the Blank theme displays the Details tabs below product images. How to move this block to the product info column (right side of the page, under Add to cart button)?
Luis Garcia's user avatar
  • 1,639
6 votes
1 answer
16k views

how to change block ordering in layouts

I am creating a custom theme for Magento 2. I have a header block defined this way (in Magento_Theme/layout/default.xml file): <move element="catalog.topnav" destination="header-wrapper"/> &...
jstuardo's user avatar
  • 609
5 votes
1 answer
6k views

How to Override Mage_Checkout_Block_Links

What is the proper way to override a method, for example, the Mage_Checkout_Block_Links::addCartLink() method. My goal is to add some HTML before the Mage_Checkout_Block_Links::addCartLink() method. ...
Raphael Rafatpanah's user avatar
5 votes
3 answers
10k views

CAPTCHA form not visible, after applying theme

I'm using magento 2.2, I've enabled Admin-Panel -> Store -> Customers -> Customer Configuration -> CAPTCHA and enabled it for following forms: "Create user", "Login", "Forgot password". The "Login" ...
Mike's user avatar
  • 53
5 votes
6 answers
25k views

Magento 2 theme giving error Unable to load theme by specified key: 'Yogesh/mytheme'

I have try to create custom theme I have got following error. Unable to load theme by specified key: 'Yogesh/mytheme' Below is my folder structure. \magento2\app\design\frontend\Yogesh\mytheme ...
Yogesh's user avatar
  • 1,503
4 votes
1 answer
1k views

Magento 2: How to enable newly created admin theme & override module?

I'm using Magento 2 CE Version 2.1.2. I have followed Magento StackExchange Questions/Answer for this. Still having issues. I would like to Override Magento 2: How to override Adminhtml "...
Jackson's user avatar
  • 9,909
3 votes
1 answer
7k views

Magento 2 - Load custom javascript with requirejs

The Problem I want to use custom JavaScript in Products/Inventory/Catalog page to modify the "Add Product" button behavior and hide some fields in product edit form (where the SKU, weight, name, qty, ...
A. Martz's user avatar
  • 305
2 votes
1 answer
2k views

putting content in a custom homepage

I have created a custom layout for my homepage, now when I refresh the page I get an empty page (this is good I assume). I was wondering how do I put in custom content? let's say I want to created ...
Nicolas Decroos's user avatar
1 vote
1 answer
447 views

Magento doesn't include theme.css in html

I'm experiencing a strange issue. On Prod/Preprod environment the application works fine but on dev environment (OSX) suddenly the application stopped working and we have no way to get it back on. We ...
Alex Roig's user avatar
  • 113
0 votes
2 answers
322 views

Magento 2.3.3 - How to solve Unable to load theme by specified key

Front End : Note : theme 327k is my magento 1.9 theme Back End : How to solve the theme error after migrate m1 to m2
zus's user avatar
  • 165
0 votes
3 answers
3k views

How to run command prompt in Godaddy for installing porto theme? [closed]

I am using Porto theme in localhost. I am using following commands to run Enable Theme for Currently Active store. php bin/magento setup:upgrade php bin/magento setup:static-content:deploy Now, we ...
nukala satish's user avatar
20 votes
2 answers
6k 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/...
Alana Storm's user avatar
  • 44.4k
19 votes
1 answer
11k 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) ...
Loreena's user avatar
  • 630
13 votes
7 answers
23k 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?
Luis Garcia's user avatar
  • 1,639