Questions tagged [custom-theme]
Denotes questions related to Custom theme for Magento
187
questions
9
votes
2
answers
14k
views
Magento 2 Checkout post code (zip code) is not a required filed
I want to make the postcode filed a required filed in the checkout process. I am sure that by default, this IS required but for some reason, it isn't in my store.
I know there is entry in vendor/...
8
votes
2
answers
3k
views
Magento2 : How to Create custom theme in PWA Studio
Anyone have any idea about how to Create custom theme in PWA Studio Magento2 ?
5
votes
7
answers
21k
views
Magento 2.3: main.ERROR: Unable to resolve the source file issue
I am getting below error when I ran php bin/magento setup:static-content:deploy -f cmd.
frontend/Alothemes/digitalstore3/en_US 2494/2645 ==========================>- 94% 5 secs
...
4
votes
2
answers
2k
views
Magento2: How to set product wise different layout
I have Two product. Both are Downloadable.
I want different layout for both product.
Except below concept:
catalog_product_view_id_1.xml
The second concept I am using is with help of observer, But ...
4
votes
1
answer
452
views
Editing custom module installed in VENDOR folder through a custom theme
I have a custom theme setup in Magento 2.2.5 where I am able to modify module files.
I know that to modify something installed in app/code i do this;
app/code/WeltPixel/ProductPage/view/frontend/...
4
votes
2
answers
6k
views
Magento 2.2.2 - Display Customer Account header dropdown and remove Sign Out link post login
After successful login, Luma theme shows customer account details in dropdown on header as seen in below image
I need to replicate the same in our custom theme which has Blank as its parent.
Vendor/...
3
votes
5
answers
10k
views
Custom theme - styles-m.css failed to open stream: No such file or directory
When setting up a new custom theme that has Magento/blank as a parent, we were able to deploy static assets locally but deploying to our staging site failed with an error.
[Magento\Framework\...
3
votes
1
answer
1k
views
Magento 2: changes to default.xml in custom theme aren't loaded
My custom theme is not loading any data from default.xml.
I confirmed this by checking the mage file in var/cache directory.
Can anyone please help me by explaining the cases in which default.xml ...
3
votes
1
answer
115
views
Removal of component in an XML listing from custom theme
I wish to remove a part from an XML page without editing the core file.
<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
3
votes
1
answer
77
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
2
answers
453
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
3
answers
2k
views
How to remove container from homepage only
I added div(container) in every page except homepage like this
<main>
<div class="myclass">
all content here
</div>
</main>
I tried ...
3
votes
2
answers
179
views
Removing CSS code from a theme using a custom theme
Im not sure this is possible but I wanted to ask.
I have a theme installed and it adds alot of CSS to the search input which breaks a custom module that also works with the search input.
I cant just ...
3
votes
1
answer
367
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
1
answer
7k
views
Magento 2: Uncaught Error: Script error for: smartmenus
I am trying to implement the navigation menu with Bootstrap Smartmenus but the theme does not pick up the javaScript. Can somebody help me out?
Vendor/Name/requirejs-config.js
var config = {
map: {...
2
votes
2
answers
4k
views
Load Custom CSS After style-l.css For Home Page
I am using below code to include my custom CSS file in home page only:
File: app/design/frontend/[Package]/[Theme]/Magento_Theme/layout/cms_index_index.xml
<?xml version="1.0"?>
<page xmlns:...
2
votes
3
answers
992
views
Magento 2.4.4: What is the theme that Magento admin uses?
I recently made a change to my setup:static-content:deploy command as php -d memory_limit=4G bin/magento setup:static-content:deploy -f --theme Perfectmakeupmirrors/argento-luxury-custom to narrow ...
2
votes
3
answers
2k
views
How to add default head block in default.xml
I want to add default head block in default.xml file. so if anyone have idea about it then please send me the solution.
2
votes
1
answer
2k
views
Logo not showing up in Magento 2.3 custom theme
I have specified a custom logo in <custom-theme-dir>/Magento_Theme/layout/default.xml as so, and uploaded the logo image file to <custom-theme-dir>/web/images/theme_logo.png, but the logo ...
2
votes
2
answers
3k
views
Exception in Magento log: the element can't have a child
I found the following errors in the exception.log and debug.log files in /var/log folder:
[2019-12-17 16:23:05] main.CRITICAL: The element "product.info.options" can't have a child because "product....
2
votes
2
answers
2k
views
The difference between luma theme and blank
I often get asked which theme is the best to set as the parent, Blank or Luma, when it comes to creating a custom theme in Magento 2?
2
votes
1
answer
316
views
Site stopped working after adding custom theme
I created custom theme ( having only theme.xml,regisration.php file and medial/preview.jpg ).
Logged in to admin panel and went to Conetnt->Design->Configurations so i could change the theme to my ...
2
votes
3
answers
1k
views
Blocks not displayed (only in luma theme)
sorry, I am a bloody beginner, so this question might be obvious to someone else. However, I cannot figure them out. I have a blank Magento (2.2.6) installation and I want to customize it (couple ...
2
votes
3
answers
4k
views
How to Set Banner in homepage above the 2-column with left bar?
I need to place banner in magento homepage.
My homepage config:
I set my homepage as 2-column with leftbar in CMS -> Pages.
I need to set the banner in above 2-column with leftbar layout.
...
2
votes
0
answers
164
views
override admin panel layout and phtml in magento2.4.5
I want to override adminhtml layout and phtml file of vendor directory to my custom theme so how can I do that, if anyone have idea then please share.
"Because sharing is caring"
Thanks in ...
2
votes
0
answers
26
views
Used technology for xml-files in app/design folder
I try to reach a better understanding of my Magento2 installation. I use a theme which place xml-files in app\design\frontend[,,].
I try to find out, how the xml file is used? In which way or by what ...
2
votes
0
answers
20
views
Product Image Gallery Not Displaying When Using Custom Theme
I have created a child theme from Luma and when I enable it the product image gallery does not appear. When I re-enable the Luma theme the image gallery works fine. What am I missing?
NOTE: I'm using ...
2
votes
1
answer
122
views
Something went wrong while saving this configuration: Area is already set magento 2.3
I am facing this error in version magento 2.3 while saving header logo.
Actually this issue is resolved as per gihub but even it is coming.link
2
votes
0
answers
1k
views
How to configure InfiniteScroll with my (Porto) theme?
Magento 1.9.1
Porto theme
I installed the InfiniteScroll extension by Strategery as suggested in my post here:
How to load less products on the mobile/tablet front page?
On the Github page of the ...
2
votes
0
answers
536
views
Magento1.9 : How to implement pwa manifest and serviceworker in theme head.pttml
I have created a custom magento theme, not integrated any magento function yet, only created phtml files with static data now.
I'm thinking to create PWA for this to get data via API/ajax (when ...
2
votes
1
answer
3k
views
Magento 2 How to correctly change style in less
I creat my theme, same as luma, parent Blank.
I try change style for search (add background-color and change opticaly.
I see in less file: app\design\frontend\Vendor\default\Magento_CatalogSearch\web\...
1
vote
4
answers
9k
views
how to add quantity increment and decreament (+ and - button) in minicart magento 2?
actually i am trying to add quantity increment and decreament (+ and
- button) in minicart magento 2.3.
If anyone have any idea please guide me.
1
vote
2
answers
113
views
Magento 2.2.x : Custom Theme
I'm pretty fresh to Magento and been playing around with Magento 2.2.6 on a MAMP setup.
Can anyone recommend any trustworthy resources for building a theme from the ground up? I am also interested ...
1
vote
1
answer
4k
views
csp_whitelist.xml for themes
Content security policies for custom modules can be added by setting up a csp_whitelist.xml file, i.e. app/code/Vendorname/Modulename/etc/cps_whitelist.xml, this is more or less excessively described ...
1
vote
2
answers
350
views
What does "catalog_category_view_type_default_without_children.xml" do exactly?
What does the layout file "catalog_category_view_type_default_without_children.xml" do exactly?
From the name of the file it sounds like it's purpose is to allow you to customize the layout of ...
1
vote
4
answers
634
views
How to move custom link right after logo in custom theme?
I have created custom link under
app\design\frontend\Myrwd\mytheme\Magento_Theme\layout\default.xml
<!-- location added in header -->
<referenceBlock name="header.links">
<...
1
vote
1
answer
2k
views
Changing favicon for admin side theme only - Magento 2.3
I've made the custom adminhtml theme and changed the login logo and the default top left logo on dashboard, however I'm unable to change the admin favicon.
In the default.xml that I'm using to ...
1
vote
1
answer
213
views
M2 - How to include custom theme directory less file path into my CMS block?
I have created custom theme which is inherit from blank theme,
I have created more than one CMS block and include into CMS page for home page design.
One of my CMS block named service banner
In the ...
1
vote
2
answers
13k
views
Magento 2.3 - Required parameter 'theme_dir' was not passed after applying custom 'Blank' theme
I'm having an issue when applying a custom 'Blank' child theme. I'm running a fresh install of 2.3 on LAMP. I followed the Magento docs with respect to theme.xml and registration.php etc, but after I ...
1
vote
1
answer
2k
views
How to override Registration success message magento 2?
I am trying to override CreatePost.php in local but its not working properly.
Below i am pasting the code please check once.
I am trying to override the code in getSuccessMessage function
C:\...
1
vote
1
answer
1k
views
Magento 2.2.5 - Widgets and Blocks are not visible on home page
I have created a custom theme with a parent theme (template monster). Now, the home page of my store no longer has the widgets and blocks that were present in the parent theme. The home page appears ...
1
vote
1
answer
3k
views
Magento 2.2.5: Warning: Cannot modify header information - headers already sent by [custom_theme registration.php]
I'm developing a custom theme and running into errors. The theme has been tested and working on various servers but, for some reason, since uploading to siteground I get the following error (file ...
1
vote
1
answer
2k
views
How to override html for a module within custom theme?
What is the correct way to customize Braintree payment options - add image for payments card ? How to override module-braintree HTML within my custom theme?
I tried to copy form.html from
vendor/...
1
vote
2
answers
763
views
Override vendor/magento/module-customer PHTML file
Magento 2.2.
I have a theme:
/app/design/frontend/Companyname/Newtheme/
I would like to override this PHTML file:
/vendor/magento/module-customer/view/frontend/templates/account/authentication-...
1
vote
1
answer
291
views
Adding CSS to child themes _extend.less has no effect
I have set up a child theme of Luma and can see it is being loaded by looking at the page source in the browser. I now want to customise the styling of the theme.
I followed the instructions here: ...
1
vote
1
answer
3k
views
How to add a custom attribute to a product view in Magento 2?
I created the attribute with code "supplier" in my admin area,
besides, I saved the file "mycustomblock.phtml" in "/app/design/frontend/{MyThemeName}/default/etc/Magento_Catalog/templates/product/...
1
vote
1
answer
339
views
proper way to use .less files in custom theme?
I've followed a number of guides to properly setting up .less files in a custom magento theme and nothing seems to be working. I've read these threads on here:
how to automatic update file `.less` ...
1
vote
3
answers
434
views
custom theme implement magento 2.2.6 issue
How to implement custom header, footer HTML design in our custom theme in Magento 2.2.6 version?
Our theme structure:
app/design/frontend/Cloudways/m2-theme/Magento_Theme
1
vote
1
answer
52
views
It can't load css js file when I change theme in magento2
There are my theme's file struct
1
vote
1
answer
226
views
Align Content in Order View Magento2
I added content using this Instruction
It's Working fine! Content is coming! But i need my custom Content at last! I don't want my custom content in middle of something! How can i align that??
My ...