Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [custom-theme]

Denotes questions related to Custom theme for Magento

Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

Custom theme only updates if I run bin/magento setup:upgrade

Newbie so apologies if I get some of the terminology wrong. I've recently started working with Magento using Mark Shust's docker version and getting along ok. However, my custom theme that inherits ...
CResults's user avatar
  • 105
0 votes
0 answers
50 views

Grunt task for the tailwind in magento 2 frontend

We are working on the custom theme with the tailwindCSS. Normal Magento flow is taking a long time to reflect the changes on the browser. My question is there any configuration or way to use Grunt to ...
Naveen Raj Kumar's user avatar
1 vote
1 answer
64 views

Magento not producing style-l.css,etc for extended theme having luma as parent?

Unexpected behavior from magento after trying to make mycustomtheme with parent luma. When I put _extend.less in incorrect location: app/design/frontend/mevendor/mycustomtheme/css/source (missing web ...
raza19's user avatar
  • 23
0 votes
2 answers
102 views

Can we add extra container to page header in Magento 2?

I need to add a extra container to page header. https://prnt.sc/dq9LDPcioxvJ please check attached screenshot.
kiran's user avatar
  • 597
0 votes
0 answers
14 views

Pearl theme logo coming up when I Google my business

My business is using Magento 2.4.5 with Weltpixel Pearl Theme. When I Google the name of my business, the Pearl theme logo comes up instead of our actual logo. Our logo is set as another image under ...
Firestarter's user avatar
0 votes
1 answer
30 views

How to enable a module for custom theme and keep it disable for other theme or luma theme in magento 2?

I have a module in the vendor folder installed via Composer. I want to keep it enabled for my custom theme. But when a user selects the Luma theme, this module should be disabled. My module depends on ...
Mehreen's user avatar
  • 11
1 vote
1 answer
31 views

Best way to override custom theme

I bought a custom theme for my Magento store and want to customize it slightly. Customizations mean that I will probably update layouts, templates, and other files that are available under app/design/...
iupaem's user avatar
  • 53
0 votes
1 answer
66 views

Best practice to modify or customize third party theme in magento 2?

I want to remove the block from the currently applied third-party theme. What is the standard way to achieve this in Magento 2?? Please provide the guidelines considering the future Magento upgrade ...
Jitendra Patel's user avatar
1 vote
2 answers
44 views

How to locate HTML files associated with the mobile view of a theme?

I installed a Magento theme on my server and wanted to make some changes to the menu within the theme.I am able to view the HTML codes related to the desktop view menu in the block section of the ...
Hirun's user avatar
  • 23
1 vote
3 answers
453 views

URL key is already in use by another blog item

Anyone can help me to fix this problem ?
Hirun's user avatar
  • 23
0 votes
1 answer
571 views

Exception #0 (Exception): Warning: Undefined array key "content_css"

I successfully installed the Martfury Marketplace Magento Theme along with the Magefan Blog Module. My intention was to edit the homepage after activating the theme. However, upon pressing the edit ...
Hirun's user avatar
  • 23
0 votes
1 answer
614 views

Warning: Private methods cannot be final as they are never overridden by other classes during compilation

I successfully installed the Martfury-Marketplace Magento theme. Subsequently, I executed the command 'php bin/magento setup:di:compile', however, an error occurred as follows: Therefore, I fixed the ...
Hirun's user avatar
  • 23
0 votes
1 answer
229 views

how to completely remove a theme?

in magento 2.2 with php 7.1 i had a theme (infortis). now i have to update to magento 2.4 and php 8.1 the theme is not compatible, it must be removed completely. to install the theme you had to copy ...
Antonio S.'s user avatar
1 vote
1 answer
108 views

Change cart icon by custom-theme's _extend.less

I have built a custom-theme that extended from luma. However, I can't change cart icon by _extends.less of the custom-theme. May I know is somewhere else to change cart icon? app/design/frontend///web/...
hill2011's user avatar
1 vote
1 answer
321 views

Custom theme not working after upgrading 2.4.2 to 2.4.3-p3

After updating to version 2.4.3-p3 our custom theme isn't working anymore. The theme has the default Luma theme as parent. After generating static content it does generate the custom theme files (can ...
Gerhard's user avatar
  • 65
2 votes
0 answers
134 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 ...
Deep Shah's user avatar
  • 561
2 votes
3 answers
876 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 ...
CodeForGood's user avatar
1 vote
1 answer
673 views

How to override carousel.phtml file in Magento 2 custom theme

I want to override below Page builder Carousel phtml file in my custom theme. Please provide magento standard way for this. vendor/magento/module-page-builder/view/frontend/templates/catalog/product/...
Jitendra Patel's user avatar
0 votes
2 answers
902 views

How to use the custom fonts in M2 using LESS

I am new to magento2, so I don't understand the less flow in M2, how it is working, and how to use the custom fonts in my theme which is present in the /fonts dir when I import the fonts using @font-...
Naveen Raj Kumar's user avatar
0 votes
1 answer
1k views

How to add .less css files in custom theme magento 2

I want to add the custom.less file in my custom theme which i want to develop from scratch. so, anyone have an idea then please share with me.
Deep Shah's user avatar
  • 561
0 votes
1 answer
499 views

Exception #0: Warning: include(/var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/view/attribute.phtml)

I am getting this error when I try to open to product catalog page in Magento 2.4.3 Custom theme? Exception #0 (Exception): Warning: include(/var/www/html/vendor/magento/module-catalog/view/frontend/...
Premkumar Suresh's user avatar
0 votes
1 answer
37 views

Shipping calculation on the product page

We have a shipping calculation module its name is "FRETE RáPIDO" the documentation says it appears on the product page. For some reason, my theme doesn't work. What code do I put in my theme ...
Cristiano Chagas's user avatar
0 votes
0 answers
254 views

Magento 2.4 - Error encountered after installing new theme error: Requested path '' is wrong

I installed a third party theme and for some reason it broke my Magento server, Now I am unable to see the frontend and backend. I cannot access the admin panel to switch it back to the default luma ...
Tim's user avatar
  • 1
1 vote
1 answer
2k views

Magento 2 : How to Import Custom Module's Less file in Custom Theme

I am creating custom theme without parent. Now, I want to add custom less file inside Magento_Theme folder. File path : app/design/frontend/VendorName/ThemeName/Magento_Theme/web/css/source/_mycustom....
Ankita Patel's user avatar
0 votes
0 answers
28 views

Need to modify the product detail page for adding a button beside the add to cart button

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** @var $block \Magento\Catalog\Block\Product\View */ ?> <?php $_product = $block->...
kks's user avatar
  • 19
0 votes
1 answer
510 views

Need to add the button next to the add to cart button

Changed the code in add to cart phtml file but it is not showing changes in the file. <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ **...
kks's user avatar
  • 19
0 votes
1 answer
26 views

Changing the positon of sign in and create account from header to footer

I have created a custom theme which has parent theme as luma. Created a folder default.xml inside the theme_name_folder/layout_folder. Trying the change the code but its not reflecting in the theme. ...
kks's user avatar
  • 19
0 votes
2 answers
37 views

How to change the front look of the website as it is showing without css?

I made the custom theme with the parent theme luma and now applied it as well but site lost its css.
kks's user avatar
  • 19
0 votes
2 answers
49 views

Specific deploy magento view files

I'm trying run two step below step1: rm -rf pub/static/* ./var/view_preprocessed/* ./var/page_cache/* ./var/cache/* ./var/generation/* step2: php bin/magento setup:static-content:deploy -f --theme ...
Huy Nguyễn's user avatar
0 votes
2 answers
41 views

Problem displaying custom favicon

I am encountering an issue when theming on Magento CLI 2.3.5-p1. I want to customize the favicon. During my first attempt I just drop a new icon on web folder and named it favicon.ico. It works but ...
violetteviolette's user avatar
0 votes
0 answers
30 views

Magento 2 : Need to put coupon form and proceed to check-out button outside cart-summary

Currently I have below layout in my cart page. I need to put coupon form and proceed to checkout button outside cart-summary. Please check the second image for what I need. If anyone having knowledge ...
Shubham Sahu's user avatar
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 ...
Christoph Farnleitner's user avatar
0 votes
1 answer
324 views

I want to make full width of all cms page. now it is max-width of 1280px. i want to make it to 1720px. how can i change

I want to change max-width, but it is not overriding in custom-theme. how can i change Here is the css style . @media (min-width: 768px), print .navigation, .breadcrumbs, .page-header .header.panel, ....
vinaysirige's user avatar
0 votes
2 answers
590 views

M2 - How to include my custom font in custom theme?

How to apply adobe laca font, https://fonts.adobe.com/fonts/laca How to apply? I am created custom theme inherit from blank theme. Custom font declaration : app\design\frontend\Myrwd\mytheme\web\css\...
zus's user avatar
  • 165
1 vote
1 answer
188 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 ...
zus's user avatar
  • 165
1 vote
1 answer
202 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 ...
zus's user avatar
  • 165
1 vote
4 answers
620 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"> <...
zus's user avatar
  • 165
0 votes
1 answer
164 views

Can't change logo size in Luma

I made a theme that inherits from Luma and am trying to increase the logo size, but it's not working. I already checked Luma sub theme - can't change logo size and it did not apply to me. I've ...
rcmenoni's user avatar
1 vote
0 answers
23 views

Adding values dynaamically in less files

I have created a theme and had configuration for the colours and background configuration in backend. I want those values to be replaced in the less file.Can it be achieved.If so please guide me to ...
Tanmay's user avatar
  • 790
0 votes
1 answer
95 views

Using luma LayeredNavigation in custom theme based on blank theme

I want to copy the style and functionality of luma layered navigation to my custom theme - parent is blank theme. If I copy the Magento_LayeredNavigation of luma theme to my custom theme <vendor>...
Samuel Demir's user avatar
0 votes
1 answer
477 views

How do I override a value from a magento 2 lib LESS mixin?

I have created my own theme using Blank Theme as it's base. In my theme, I have a file in web/css/source/_navigation.less As I understand, this file calls a mixin. .lib-main-navigation();which pulls ...
gxrobb's user avatar
  • 87
1 vote
0 answers
85 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/...
Ramesh KR's user avatar
  • 876
0 votes
1 answer
70 views

I am stuck with this error while creating custom select attribute in product in magento 2

I am stuck with the following error while creating custom dropdown in magento 2.3.5. Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::...
Deep Shah's user avatar
  • 561
1 vote
0 answers
87 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.
Deep Shah's user avatar
  • 561
0 votes
1 answer
159 views

how to install themeforest-T5ELugiM-claue-clean-minimal-magento-2-theme in magneto 2.3.5

It shows Unable to find a physical ancestor for a theme 'MGS Claue'.
Sonali Ghule's user avatar
0 votes
2 answers
159 views

Add code to <head> using a custom module & theme

I'm working on a custom theme for Magento. I'm trying to create a module for the theme that adds some code to the <head> but i'm finding it difficult to get it working. I've created my module ...
jd182's user avatar
  • 103
4 votes
5 answers
20k 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 ...
Balwant Singh's user avatar
1 vote
0 answers
32 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 ...
Gracie's user avatar
  • 11
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.
Deep Shah's user avatar
  • 561
0 votes
0 answers
34 views

Magento 2.3 - Theme installation error

After move theme folder (app, pub, lib) to root folder then run php bin/magento setup:upgrade getting the following error, php bin/magento setup:upgrade Installing data... SQLSTATE[23000]: ...
zus's user avatar
  • 165