Questions tagged [theme]

Questions about creating, modifying and configuring Magento themes

Filter by
Sorted by
Tagged with
81
votes
4answers
26k 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 ...
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 ...
27
votes
4answers
17k 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 ...
15
votes
2answers
10k 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 ...
12
votes
6answers
31k 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\...
35
votes
7answers
34k 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 ...
9
votes
4answers
6k 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
5answers
22k 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 ...
59
votes
17answers
61k 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?
18
votes
5answers
14k 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 ...
26
votes
2answers
42k 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 ...
13
votes
4answers
26k 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 ...
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 ...
7
votes
2answers
31k 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/...
7
votes
2answers
5k 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 ...
2
votes
5answers
7k views

Magento 2 - Create New Theme based on the blank theme

I'm new to Magento I try to create 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 ...
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 ...
34
votes
1answer
23k 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 ...
9
votes
3answers
9k 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 ...
2
votes
1answer
3k 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 ...
28
votes
1answer
4k 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 ...
18
votes
4answers
18k 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 ...
5
votes
2answers
5k 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
7
votes
2answers
8k 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 ...
7
votes
5answers
13k 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:...
17
votes
4answers
14k 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 ...
9
votes
2answers
4k 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?
7
votes
1answer
14k 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 ...
9
votes
2answers
4k 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 ...
8
votes
2answers
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....
5
votes
1answer
11k 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"/> &...
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 ...
5
votes
1answer
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. ...
3
votes
1answer
10k 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)?
10
votes
2answers
8k 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 ...
7
votes
3answers
10k 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/...
4
votes
1answer
803 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 "...
2
votes
1answer
5k 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, ...
2
votes
1answer
842 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 ...
0
votes
3answers
862 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 ...
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. ...
16
votes
2answers
3k 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/...
10
votes
1answer
11k 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 ...
8
votes
3answers
13k 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 ? ...
7
votes
1answer
4k views

Magento2 : how can I call my theme images in static block

I have install Magento2 and create static block how can I call my theme images in static block ? In Magento1.x we used {{skin url="images/demo.jpg"}}. Any one have idea for how to call images in ...
5
votes
1answer
3k views

Magento 2 - editing module structure and functions

in Magento 1.x you could duplicate the extensions to app/design/frontend/themeName/default/template/or/layout and then modify it's layout or functionality via xml or phtml files. How do we duplicate ...
3
votes
3answers
9k views

How to edit and modify the main page of Luma theme?

For the Luma theme, how to: How to reach and edit the main page of magento 2 Luma theme? How to replace the images there with my images? How to edit the hot sellers section? How to reach and edit the ...
2
votes
2answers
7k views

Accidentally deleted .htaccess file inside pub/static folder

I accidentally deleted my .htaccess file. Before that I could just delete everything in the var and pub/static folder (except the .htaccess file of course) and just reload the page to see my CSS / ...
10
votes
6answers
1k 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/...
5
votes
2answers
4k views

Hiding Price if 0

This seems like it should be easier then the results Im getting. Im not a PHP expert but I've got a product(s) that will be a different price and therefore am trying to set it up so when it's in my ...