Questions tagged [custom-theme]

Denotes questions related to Custom theme for Magento

Filter by
Sorted by
Tagged with
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
7k 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/...
4
votes
2answers
862 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
180 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
4k 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
8k 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
74 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
51 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
223 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
893 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
63 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
221 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
663 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
108 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
740 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
1answer
98 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
579 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
0answers
404 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
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
3answers
3k 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
4k 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
672 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
506 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
29 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
277 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
199 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
330 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
358 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
1k 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
45 views

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

There are my theme's file struct
1
vote
1answer
120 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
1k 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
353 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
936 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
0answers
7 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
31 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
1answer
44 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
12 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
1answer
148 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 ...
1
vote
1answer
246 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....
1
vote
1answer
247 views

Magento 2 - Use Bootstrap 4 (Uncaught Error: Script error for: bootstrap)

I try to install bootstrap 4. Note: THEME_LOCATION => app\design\frontend\company\base First I downloaded the Compiled CSS and JS from here. I moved the file bootstrap.min.css to THEME_LOCATION\...
1
vote
0answers
233 views

Magento 2 Parent's theme styles are not loading in the child theme

I have create a child theme that extends from magento-luma theme by following the steps below: app/design/frontend/Company/parent/registration.php <?php \Magento\Framework\Component\...
1
vote
2answers
123 views

magento 2.3.1 - Invalid template file

I been working on new webpage recently and got unfortunate error, when I click on a product in catalog page i get this error: 1 exception(s): Exception #0 (Magento\Framework\Exception\...
1
vote
0answers
93 views

Adding Owl Carousel to Magento2.2.5 Blank Theme

I am working on customizing the Magento 2 Blank theme and trying to add owl carousel however am getting this error Uncaught TypeError: Cannot read property 'fn' of undefined at :8888/pub/static/...
1
vote
0answers
38 views

How to call custom block file in custom theme in magento 2

How to call custom block file in custom theme in magento 2 app/code/Cm/Mod/view/frontend/layout/catalog_product_view.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
1
vote
0answers
47 views

In my custom theme swatch option not display in category page in magento 2

In my custom theme swatch option not display in category page in magento 2 configuration option is not display in the category page refer image : https://prnt.sc/nvegd1