Questions tagged [theme]

Questions about creating, modifying and configuring Magento themes

Filter by
Sorted by
Tagged with
3
votes
2answers
16k views

How to edit html in the body of Magento

I am curious as to how to edit content in the body of my Magento website. I can find and edit the header and footer with ease, but if there's anything in the body I seem to get lost as to how I can ...
3
votes
1answer
1k views

How to display custom attribute in related product in related.phtml

I need to display custom attribute in related product. I have tried get value of custom attribute in related product from related.phtml file. app/design/frontend/base/default/catalog/product/list/...
3
votes
1answer
527 views

Subdomain multi-site with separate files

Is it possible to run a site (beta site, beta.subdomain.com) with separate files in the subdomain rather than using symlinks? I want to test this way so the files in the subdomain are separate from ...
3
votes
1answer
75 views

css/html development for checkout process

I have created a theme and would like to finish it by styling the checkout and payment pages. Which trick can I play to have a »quick-access« to all these pages without the need of »buying« a product ...
3
votes
2answers
1k views

Add custom menus to magento

I need to add menus like here http://www.pickormiss.com as given here like Vegetables, Meatshops, Restaurant, Gift shops etc. How can I add such pages so, that it can be customized from the dashboard?...
3
votes
2answers
30 views

Why does the default Magento theme have /html subdirectory?

If you look at https://github.com/magento/magento2/tree/2.3-develop/app/code/Magento/Theme/view/frontend/templates , there's phtml templates in this folder, but also in a subfolder called /html ...
3
votes
1answer
57 views

How would I link module-page-cache into my theme? [closed]

what would be correct spelling for the module? Magento_Page-Cache , Magento_Page-cache , Magento_Page_Cache ?
3
votes
1answer
24 views

Is there a standard way to make add a config on theme scope?

To solve a problem in an FOSS extension I need to introduce a configuration settings with the scope "theme". Is there a standard way do to such? I was thinking about extended in the theme.xml but ...
3
votes
2answers
231 views

Custom Theme registration.php error in Magento 2

I'm using magento 2.2.5 and try to create customer theme, I added the registration.php inside app/design/frontend/Test/mine/ <?php \Magento\Framework\Component\ComponentRegistrar::register(    ...
3
votes
6answers
1k views

How to turn on Template Path Hints in Magento2 Through Code edit

I know that you can turn template path hints on in Magento2 through the Admin Panel at Stores > Configuration > ADVANCED > Developer. Although in Magento 1 I find it much quicker to temporarily edit ...
3
votes
2answers
943 views

Why don't work custom theme layout extension in Magento 2?

i have created custom theme /app/design/frontend/VendorName/ThemeName It works fine. I see it in the admin, styles from it are applied, etc. But When I try to extend module layout Magento 2 don't ...
3
votes
1answer
122 views

How to set menu and header in one div magento2?

In my custom theme I need to put the header and menu in one div. Now I have the following structure: How can I add blocks in one div so I can have this structure ?
3
votes
1answer
1k views

How to create custom breakpoints in magento2?

How can i create custom breakpoint with min and max like @media only screen and (min-width:768px) and (max-width: 1023px) {...} in my custom theme in magento 2.1 ?
3
votes
4answers
5k views

Invalid template file error in Magento 2

In my custom theme, I added custom template for which I am getting invalid template file error in system.log. My xml file loctaion: app/design/frontend/{vendor}/{theme}/Magento_catalog/layout/...
3
votes
2answers
2k views

how to install theme in Magento 2?

How to install the following theme from Magento Connect: https://www.magentocommerce.com/magento-connect/free-theme-women-fashion-by-pagayo.html there is install click there but when click it, it ...
3
votes
3answers
10k 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 ...
3
votes
2answers
2k views

Cannot read contents from file app\design\adminhtml\Magento\backend\etc\module.xml in Magento 2

I have created a adminhtml theme but it's throwing error. Could you please clarify me where I went wrong? my code is: root/app/design/adminhtml/Magento/backend/composer.json { "name": "magento/...
3
votes
1answer
5k views

Magento 2: How to override the luma default.xml

I wish to do some customization in luma theme (default.xml). I just created the default.xml file as specified below but it is not taking any effect. Note sure is this the correct way to override the ...
3
votes
1answer
5k views

How to move store swicther after header links in magento 2

I want to move store switcher after header links and also move search bar after links. how to do that?? I'm using blank as parent
3
votes
1answer
932 views

Error after compilation in Magento

I am getting an error after compilation. I am using Magento 1.9.0.1. My website was running too slow so I have complied but after compilation my website (frontend as well as backend) has down and ...
3
votes
1answer
1k views

Add to cart ajax not working with secure and unsecure url

All Ajax is working perfectly when we are using secure base url = https or http and unsercure base url = https or http. When we add secure base url = https and unsecure base url = http. Now we have ...
3
votes
1answer
389 views

Theme Preview Image does not appear on view theme admin

I just following this tutorial https://jamersan.com/lets-get-started-theming-magento-2-part-1/ , in this tutorial I learn about how to make Magento Theme, but unfortunately I unable to show Theme ...
3
votes
1answer
230 views

Override empty.xml in a custom theme

I'm creating a new theme for a Magento 2.2.6 community edition and I need to wrap all the content inside a CSS class. To do so I had to change <main id="maincontent" class="page-main"> to &...
3
votes
1answer
391 views

Magento 2 Override image problem (static image of parent theme)

Having a parent theme, I have created a child theme. (Magento 2.2) Parent theme: Mgs/claue Child theme: Bee/elag In the web there is a Title of page with a background css: .page-title-wrapper { ...
3
votes
1answer
57 views

Is my current way to create a new Magento2 theme the correct method?

I have to create new theme that looks the default Magento Blank theme (other colors, other font). That's why I created a new theme with 1 file less css/source/_theme.less. This file _theme.less looks ...
3
votes
1answer
395 views

Magento : how to add featured products in homepage

I installed a new theme, I dont know how to add featured products in homepage for my magento1.9.0.1.. please help me how to do this?
3
votes
2answers
185 views

Magento 2.1.3 Create theme

I'm beginning with Magento and it's incredible that create a theme is so complicated... I've understand that to add my css to the head I need to override a layout. So I override default_head_blocks....
3
votes
3answers
1k views

How to remove header phone number [closed]

I would like to change or remove the phone number on top right of this Magento site. Please can someone assist me. I have tried every where in the admin section to find it but couldn't find where to ...
3
votes
3answers
3k views

Magento 2 - Overwrite module-swatches view.xml

How do you overwrite the view.xml in \vendor\magento\module-swatches\etc\view.xml in your own template? I want to overwrite the sizes for swatch_image and swatch_image_base. I tried putting the ...
3
votes
2answers
99 views

Is it OK to make all XML changes in a singe file in Magento 2.x?

In my /app/design/frontend/VENDORNAME/THEME/Magento_Theme/layout/default.xml I have made changes like this (changes that are effecting Magento_Catalog): <move element="product.info.media" ...
3
votes
1answer
2k views

installing a theme

I am trying to install theme porto in vain. Here is where I am getting a problem on the instructions. Active SW Extensions, open command line in folder root of magento and run commands, php bin/...
3
votes
1answer
143 views

Magento Responsive CSS block

i need to make that bar have the same margin as the whole page and be responsive. Im not being able to do so. Im new to css html and stuff, i've tried adding padding, margins, float and was ...
3
votes
1answer
173 views

Do I need to override the Magento Core Files in order to create a new Admin Theme with a responsive design? [closed]

If I want to create a new theme for Magento 1.9.1 admin panel (with responsiveness), will I need to override core files?
3
votes
2answers
4k views

Setting default payment method and skip the payment step

I would like to 'skip' the payment method step on the one page checkout step in Magento. I am currently using SagePay as my payment method and well, as SagePay is my only method it seems pretty ...
3
votes
1answer
5k views

parent and child themes

I have followed the article here, http://alanstorm.com/magento_infinite_fallback_theme_xml and I have it working 99%. There is an odd thing happening that clearing the cache and all the moving around ...
3
votes
2answers
216 views

Need to override Mage_Core_Block_Abstract function _toHtml()

I have 4 different stores in the same Magento system, so I have 4 different themes. One of them is overriding on /code/community/mage/cms/block/block.php the function _toHtml() like this: protected ...
3
votes
1answer
1k views

How to use filters on custom product listing?

I need to use filters on different type of product listings not just on category page. Let me give and example i have the product listing of mostly-viewed products . I have created a CMS page and ...
3
votes
3answers
2k views

Magento attributes in seperate phtml files

I have 4 attributes inside my Magento for two of my products. In order to make jquery tabs on product page with attributes values, I need to seperate thoose values in phtml files. Is there a way to ...
3
votes
1answer
129 views

make sticky header without custom js code

I tried to make the header sticky using the default jquery code: $('.page-header').mage('sticky', { container: '.page-wrapper' }); I added this piece of code into the theme.js file in the ...
3
votes
1answer
712 views

Move block inside another block

I want to put the header.links into another block. this is the icon.phtml file: <div data-block="dropdown" class="minicart-wrapper"> <i class='fas fa-user-circle action' data-trigger='...
3
votes
0answers
176 views

Magento 2: Setting theme ID 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/...
3
votes
1answer
211 views

Magento 2 - How to call a custom HTML file like header.html and footer.html (under Magento Email or Custom Module) in any email templates?

Create separate email header and footer for 2 different "frontend area" for Customer for Vendor Area (seller admin panel "not admin area") I want separate email design for both area. right now my ...
3
votes
2answers
2k views

Magento 2: How to call Widget programatically?

I have created widget Type: CMS Static Block Theme: My Theme Display on: All Pages Container: CMS Footer Links Template: CMS Static Block Default Template Widget Options: Block (My selected block) ...
3
votes
1answer
126 views

Using _extend in a grandchild theme

I have a question regarding how Magento 2 Less handles _extend. According to the documentation http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-guide/css_quick_guide_approach.html I can ...
3
votes
0answers
684 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
2answers
3k views

Magento 2 child theme: CSS files not included

I want to add some CSS files. So I created a child theme. In Backend the theme is activated. theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
3
votes
0answers
172 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'...
3
votes
1answer
1k views

CSS not showing for “NEW” or “SALE” label

So I followed this tutorial to add "NEW" or "SALE" label for this site: http://www.ubertheme.com/docs/add-product-labels/. The label does show up on the product icon but for some reason the CSS isn't ...
3
votes
0answers
231 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
1answer
4k views

How to start working with HTML5 in magento [closed]

I am a magento developer and now want to start theme development using HTML5 and CSS3. Please help me for a start on this if any body can. Thanks

1
3 4
5
6 7
30