Questions tagged [custom-theme]

Denotes questions related to Custom theme for Magento

Filter by
Sorted by
Tagged with
7
votes
2answers
9k 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/...
7
votes
2answers
2k views

Magento2 : How to Create custom theme in PWA Studio

Anyone have any idea about how to Create custom theme in PWA Studio Magento2 ?
4
votes
2answers
1k 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
1answer
241 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
1answer
5k 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
5answers
9k 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
1answer
84 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
1answer
59 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
2answers
264 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
3answers
1k 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
2answers
95 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
1answer
268 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 &...
2
votes
2answers
3k 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
1answer
876 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 ...
2
votes
1answer
128 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
3answers
911 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
3answers
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
0answers
12 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
0answers
15 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
1answer
103 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
0answers
751 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
1answer
5k 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
0answers
445 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 ...
1
vote
3answers
6k 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
2answers
108 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
4answers
175 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
1answer
670 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
1answer
40 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
3answers
7k 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
1answer
1k 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
1answer
895 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
2answers
609 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
1answer
38 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
1answer
922 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
1answer
254 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
1answer
545 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
3answers
393 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
1answer
2k 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
1answer
48 views

It can't load css js file when I change theme in magento2

There are my theme's file struct
1
vote
1answer
150 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 ...
1
vote
2answers
2k views

Magento 2 Custom Theme Templates

I've been programming Magento 1 for many years but I'm just getting into Magento 2 and I am a little confused about the theme folder structure. From what I have found there's really no concept of ...
1
vote
2answers
452 views

Magento 2.2.2 Custom theme Xml update external script with query string & or &amp;

Adding external link in custom theme in any xml e.g: contact_index_index.xml doe not parse properly if it has & or & <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&...
1
vote
2answers
1k views

How to add footer link in magento 2

I have created block title Footer Links Block and block identifier footer_links_block and added bellow code into block. <div class="row"> <div class="col-sm-9 pad_right"> <div class="...
1
vote
1answer
50 views

M2 - Best practice for adding custom less file in Custom Theme for CMS Static Block

I just created custom theme, i have followed a number of guides to properly setting up .less files in a custom theme and nothing seems to be working. Where should i place less file for cms custom ...
1
vote
0answers
14 views

Calling minicart in phtml not showing dropdown on click

I'm calling minicart in my phtml like below <?php echo $this->getLayout() ->createBlock('Magento\Checkout\Block\Cart\Sidebar') ->setTemplate('Magento_Checkout::cart/...
1
vote
0answers
41 views

How to setup Muti theme for multi website in Magento 2.3.5

I am going to create multi websites and stores in magento and i want to setup different theme for each store. so anyone can have idea about it please share with me. Thank you in Advance.
1
vote
2answers
3k 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 ...
1
vote
0answers
16 views

Custom Magento theme not extending from custom parent theme

So I'm working on creating a custom parent theme I can reuse for a bunch of different projects and then a child theme for custom styles for a client to extend from that theme. I had the custom child ...
1
vote
3answers
186 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.
1
vote
1answer
493 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 ...