Questions tagged [theme]
Questions about creating, modifying and configuring Magento themes
1,510
questions
0
votes
0
answers
26
views
Magento 2 Add a global js function
i'm trying to extend Magento_Ui/js/lib/core/class, in magento 2.4.3-p1, from a module but my extend js doesn't load in page
here is my /view/frontend/web/require-config.js
var config = {
config: {
...
0
votes
2
answers
27
views
Magento 2.4.4 not loading theme files
I just installed the Magento 2.4.4 successfully and it's showing the website in the browser, but not loading the js and css files.
However, I set the root file to pub folder and updated the .conf file ...
1
vote
1
answer
22
views
Magento 2 - Can't compile new theme Theme inheriting from luma
I created a new minimalistic theme in a fresh Magento 2.4.2
The theme inherits from Magento/luma
Example:
app/design/frontend/company/foo/registration.php:
<?php
/**
* Copyright © Magento, Inc. ...
0
votes
1
answer
50
views
+50
Magento 2 - How to extend a custom theme which uses less variables?
I have a custom theme for our onlineshop named "Company Fresh" which extends Magento/luma.
I created another theme which I named "Company Fresh Green".
It is based on "Company ...
0
votes
1
answer
9
views
Split Configurable Products' options onto two pages
A particular Product has eight configurable attributes. The logical flow from a user perspective would be to select the first four attributes on one page, click "Next", then select the last ...
1
vote
0
answers
12
views
Magento 2 : style changed after upgrading to 2.4.3
I have the same data & files in the live & staging site.
On staging, I have upgraded to 2.4.4 but after upgrade fronend styles are changed, not sure why.
How to debug & fix it ?
0
votes
1
answer
23
views
Upgrade magento 2 theme
I have upgraded Magento with the latest version (i.e 2.4.4).
I would like to start upgrading the theme now (i.e Porto theme).
Version "2.2.1" is currently installed & version "4.0.2&...
0
votes
1
answer
81
views
How to override shipping-address/form.html with my theme
I am trying to override the file vendor/magento/module-checkout/view/frontend/web/template/shipping-address/form.html using my theme, but I can't find which path is correct. Can someone point me in ...
0
votes
0
answers
71
views
How to properly install ScandiPWA on existing magento2
Suppose I have already installed magneto 2 on my server and now I want to install Scandipwa for the frontend.
I think https://packagist.org/packages/scandipwa/installer this installer is outdated as ...
0
votes
1
answer
49
views
i'm using 2.4.3-p1 (Something went wrong while saving this configuration: Unable to load theme by specified key: '')
This is the screenshot of error, which i'm facing error while uploading theme without key number.. please help me with this issue..thanks in advance.
0
votes
1
answer
70
views
Unable to setup ScandiPwa theme in my localhost Magento 2
I am trying to setup ScandiPWA theme in my localhost.
All configuration are setup as per documentation provide Existing Magento 2 setup but still not show the proper scandipwa theme instead it shows ...
0
votes
1
answer
29
views
Magento 2.4.3p1: Porto theme design changes not reflecting
I have installed a new instance of Magento 2.4.3p1 and new Porto theme on it. I installed demo of Porto and now I am trying to change the design color from admin but the changes are not reflected on ...
0
votes
1
answer
27
views
Apply separate theme to multiple store view in Magento 2
I created multiple store views in the backend like Store 1, Store 2, and Store 3. Now I have three separate themes so want to assign them separately to store views.
In the backend System-> ...
0
votes
0
answers
28
views
Show minicart in both header and footer magento 2
I'm trying to show minicart in both header and footer. I have added a new phtml in footer layout and added below code.
<?php echo $this->getLayout()
->createBlock('Magento\Checkout\...
0
votes
0
answers
63
views
Extension Layout won't work when using a custom theme
I have built an extension intending it to add a block underneath the Add to Cart button on the catalog product page.
My extension layout file isn't being executed - instead it just executes my custom ...
0
votes
0
answers
11
views
Lightsail instance unreachable after running setup:upgrade during theme install
I have Magento 2.4.3 on an AWS Lightsail instance (bitnami packaged app). I added a theme in under app and pub as instructed and ran php bin/magento setup:upgrade. Started fine then evidently seized ...
0
votes
2
answers
12
views
Page loads once with no errors, multiple 403's after reload
I've been working with Magento for a number of years but I've never come across this before. I'm working on a custom theme for a new site - vanilla Magento 2.4.3 Open Source install - and recently ...
0
votes
4
answers
40
views
How to create Magento 2 theme?
I have given tasks in Magento to create a custom theme. My task is to create Magento Theme from scratch. I want a source that I can refer to. If anyone did this before please help me.
Thank You
0
votes
2
answers
60
views
Header of my website get disappeared
I am working on a magento2 website using a smartwave Porto theme, suddenly I noticed that the cart icon and search bar disappeared and my menu get disorganized and unclickable. I have run the ...
0
votes
1
answer
1k
views
Compilation from source: LESS file is empty
What is the reason behind the error as below:
Compilation from source: LESS file is empty: frontend/vendor/theme/en_GB/css/style.less
I am using a custom theme that inherits from the default blank ...
0
votes
1
answer
48
views
How to use same theme(Porto) for different website(multiwebsites) with different style
I want to use the same theme(Porto Theme) for different websites (multi websites) with different styles on a single Magento installation.
Please help.
0
votes
1
answer
27
views
Where to find Path of the price element in Magento 2
I have installed a payment method extension and it requires adding the following;
Can I please know what element to input and where to find the path?
Thank you
0
votes
1
answer
23
views
Is My Theme Corrupting My Cart Shipping Options?
I posted a portion of this issue on Reddit, but after reading through a few posts here regarding issues with free shipping configuration I'm now wondering if the theme layered onto my site is somehow ...
0
votes
3
answers
54
views
setup:upgrade try to remove my theme!
Like in the title, every time when I use setup: upgrade i asked to remove themes:
Processing configurations data from configuration file...
The following themes will be registered: adminhtml/Magento/...
1
vote
0
answers
53
views
magento 2.4.3 Custom theme "Required parameter theme_dir was not passed"
I'm trying to create custom theme in my magento 2.4.3. I m getting error "" have written like this below.
1 exception(s):
Exception #0 (InvalidArgumentException): Required parameter '...
0
votes
0
answers
114
views
Porto not generating style in Magento 2.4.3-p1
I am using Porto in Magento 2.4.3-p1 but the design of it is not right on any of the demos. It looks like css files are not being generated.
I have applied the patch and ran all of the commands, also ...
0
votes
1
answer
43
views
Magento 2.4 custom theme (no parent) how to go further?
I'm really new to magento and was asked to remake our old theme (shopify store) in magento.
I've chosen to create a theme without a parent so i could have more control, following this tutorial to ...
0
votes
0
answers
34
views
Layout XML in third party theme
I am a beginner in Magento 2.
I installed a third party theme, in the home page, I founded this code on Layout Update XML field
<referenceContainer name="slide.showcase">
<...
0
votes
0
answers
21
views
How to add block to main container from custom theme?
I've created a custom theme: app/design/frontend/TestVendor/testTheme with registration.php and theme.xml files.
Inside the testTheme folder I've created another folder: TestFolder and inside this ...
0
votes
0
answers
30
views
Magento2 static-content:deploy error "no matching definition was found" after updating magento version
Two years ago we started programming a Magento 2 shop with version 2.3.3. However, the development was stopped for 2 years and should now continue.
However, I now have a problem with my theme when I ...
0
votes
1
answer
96
views
magento 2.3 display first two product images on details page
i am using magento 2.3 version and i am using custom theme so i want to product page in main image showing first two images so when main image sliding and another coming it and rest first same like it
...
0
votes
0
answers
23
views
Can I install Porto theme and Claue theme as the same time?
Currently I have installed the Claue theme. Now I would like to change to Porto theme without delete the Claue theme. Is this possible without problems between both themes?
0
votes
2
answers
693
views
Magento 2.4.3 - Module and Theme Installation not working
I have installed Magento 2.4.3 via composer and trying to install custom frontend/admin theme and custom modules. These modules are already working in version 2.3 that have been copied and added at ...
0
votes
1
answer
29
views
Difference between various default.xml
I'm trying to do some simple modification to my theme, but I can't understand why there are 2 different default.xml files, one under \vendor\magento\module-theme\view\frontend\layout\ and the other ...
1
vote
1
answer
432
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....
0
votes
0
answers
24
views
Success screen stuck in luma theme Magento 2.3.5 Community Edition
everything good?
I'm trying a problem that I've never caught in these 2 years of magento, I would like to know if you've been through this for tips on how to get out.
On the success screen, the layout ...
0
votes
2
answers
163
views
Full page background on Magento 2 page
I'm trying to understand, how could I implement a full page background on a custom theme.
For example if I want to manually create a slider inside a Magento 2 home page like this:
How could I do?
...
0
votes
1
answer
21
views
Wrong static files loaded
I've just deployed a new env and I'm getting some strange thing.
In the frontend, my static files load properly from my custom theme
frontend/Website/default/fr_FR
But once I come into the admin, all ...
-1
votes
1
answer
813
views
How to disable Magento 2 Content Security Policy with theme edit only
I have searched alot on the internet and I want to hide this error (magento 2.4)
content security policy error , we don't have authority to disable magento_csp module and we can not create module, we ...
1
vote
1
answer
284
views
Magento doesn't include theme.css in html
I'm experiencing a strange issue. On Prod/Preprod environment the application works fine but on dev environment (OSX) suddenly the application stopped working and we have no way to get it back on. We ...
0
votes
2
answers
71
views
Installation of the theme using putty
I am using puTTY and its showing the error.
0
votes
1
answer
22
views
Adding data under price for each product in product listing
I want to add some data under the price for each product in a product listing. To show an example I would like to add static data where the blue lines are:
I've made modifications to frontend/company/...
0
votes
1
answer
128
views
Proper Place to Add CSS in Magento2 and Magento only Showing CSS Changes when Clearing Browser Cache?
I am trying to modify some CSS files in my Porto theme in Magento 2.3.5pt-2. When modifying the CSS in pub/media/porto/web/css/custom.css I am not seeing any changes. I am in developer mode, I have ...
0
votes
1
answer
68
views
Unable to install theme with composer
I'm trying to install Alpaca theme following the documentation.
I've created my composer.json file under app/design/frontend/ben/gotheme/composer.json
{
"name": "ben/gotheme",
&...
0
votes
0
answers
198
views
How to change HTML of Menu in Magento 2.4.2 Claue Theme?
I want to change some HTML in Magento 2.4.2 Claue theme.
Like when I add 12 subcategory the design is not good it will add subcategory one below other so it will not looking good. I want to add ...
0
votes
1
answer
348
views
Magento 2.4.2 - Strange problem with JS path in a multistore environment
I have a really strange problem.
We load a JS file in before.body.end in a multistore setup, like this:
\app\design\frontend\Vendor\Theme\Magento_Theme\layout\default.xml
<referenceContainer ...
0
votes
1
answer
83
views
Magento 2.4.2, child theme of Blank - Front end. How do you remove properties in parent Blank theme styles, for example footer border?
The file I use to override these styles: app/design/frontend/Vendor/ChildTheme/web/css/source/_module.less as per M2 documentation.
I tracked that it applies my modified styles, but then goes and puts ...
0
votes
1
answer
19
views
Need to change the site mail Logo if my module called in magento 2.3
I need to change the logo if the page is used in my custom modules. There are 2 Logos - Logo 1 and Logo 2.
My Module
test/login
test/list
If the above modules come I need to show the Logo 2
0
votes
1
answer
18
views
How many Theme licenses to buy on 1 Magento 2.x install with 3 websites/stores/storefronts each running on a separate domain?
Magento 2.4.2
Porto theme
I am setting up a new project on Magento 2.4.2 which will have 1 Magento installation running on a dummy (not used in the project at all) domain with 3 additional websites/...
0
votes
1
answer
22
views
upload porto theme with existing database in Magento 2.3.5
can I upload the porto theme and use my old products hence the dummy data will be removed and my old data will be shown... is this possiable
furthermore will my old categories appear in the theme or ...