Questions tagged [custom-theme]
Denotes questions related to Custom theme for Magento
172
questions
0
votes
2
answers
30
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-...
0
votes
1
answer
47
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.
0
votes
0
answers
40
views
When i install manual the magento theme I got error 'Exception #0 (ReflectionException): Class ET\Base\Helper\Data does not exist'
Exception #0 (ReflectionException): Class ET\Base\Helper\Data does not exist
#1 Magento\Framework\Code\Reader\ClassReader->getConstructor() called at [vendor/magento/framework/ObjectManager/Definition/...
0
votes
1
answer
97
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/...
0
votes
0
answers
29
views
How to write and run Js Unit testing in Magento2.4
I have created custom themes and modules. Now I need to write and run the unit tests for the custom-developed modules. Could anybody help me know how to write a js test and how to run the test for a ...
0
votes
0
answers
12
views
How to convert Image Gallery Slider M1 to M2.4
I'm trying to make images Slider with 5 galleries. I have magento 1 custompage code but i don't know how to convert it for M2 home page.
Magento1 home page Section URL (Featured Press): https://...
0
votes
1
answer
25
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 ...
0
votes
0
answers
30
views
Importing Magento\Catalog\Block\Product\View to theme phtml file
so I'm trying to overwrite the title.phtml in my Magento_Theme file, and its working, but now I want to get product data from Magento\Catalog\Block\Product\View, but it says that the variable in ...
0
votes
0
answers
62
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 ...
1
vote
1
answer
411
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
21
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->...
0
votes
0
answers
82
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.
*/
**...
0
votes
1
answer
25
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. ...
0
votes
2
answers
33
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.
0
votes
2
answers
47
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 ...
0
votes
2
answers
32
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 ...
0
votes
0
answers
17
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 ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
116
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, ....
0
votes
2
answers
205
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\...
1
vote
1
answer
135
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
1
answer
56
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
4
answers
295
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">
<...
0
votes
1
answer
108
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 ...
1
vote
0
answers
21
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 ...
0
votes
1
answer
56
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>...
0
votes
1
answer
131
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 ...
1
vote
0
answers
22
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/...
0
votes
1
answer
39
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::...
1
vote
0
answers
78
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.
0
votes
1
answer
121
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'.
0
votes
2
answers
59
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 ...
1
vote
3
answers
8k
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
0
answers
24
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
3
answers
829
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.
0
votes
0
answers
31
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]: ...
0
votes
1
answer
187
views
Creating a custom theme for Magento2 from the Luma theme as parent
Referencing this article below:
https://www.codextblog.com/magento-2/create-a-custom-child-theme-from-luma-theme/
Having followed all of the steps, our theme is created and applied, but none of the ...
0
votes
1
answer
669
views
Unable to get Grunt less task working on Custom Magento theme
Good morning,
I'm pretty new to Magento 2 and I'm currently in the process of trying to get my first custom M2 theme up and running.
I have managed to create my new theme but running into trouble ...
0
votes
1
answer
143
views
Magento 2: remove all default JS for custom theme
We are creating multiple websites in one magento 2 instance with a custom theme. Those websites are not supposed to be shops. They all are serving one simple page without any of magento's ...
1
vote
1
answer
64
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
1k
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 ...
0
votes
1
answer
75
views
Adding custom JS (Slick Slider) to Magento Custom Theme without overriding parent
I created a custom theme which is inheriting from the blank theme.
Now I wanted to integrate Slick and found this article which I followed
https://inchoo.net/magento-2/magento-2-slick-carousel/
My ...
0
votes
2
answers
49
views
Where could I learn to edit page in magento 2?
I'm new in magento 2 and I would like to learn how to edit for example any pages (front.end) in magento 2:
Mysite.com/page1
Mysite.com/page2 ecc ecc
I'm studing from the doc of magento 2 (front-end) ...
1
vote
2
answers
127
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 ...
0
votes
2
answers
53
views
Element 'body' : Character content other than whitespace is not allowed because the content is 'element-only' after Magento 2.3.4 upgrade
After Magento 2.3.4 upgrade, Error is "Element 'body' : Character content other than whitespace is not allowed because the content is 'element-only'" on Product details page.
Actually after ...
0
votes
4
answers
189
views
Magento2 - Admin keeps on loading
Why Magento2 Admin Panel is too much slow and keeps on loading ?
0
votes
1
answer
34
views
I want to over ride Style-l.less file in Magento blank theme?
I have created Custom theme which is inheriting Magento Blank theme... Now I want over ride CSS in style-l.less file of Blank theme How can I do that???
0
votes
1
answer
62
views
Add block from Luma parent into child theme
I'm using a custom child theme with Luma as the parent, I have a custom page layout xml file and I'd like to include a block that's defined in the parent theme:
<block class="Magento\Theme\Block\...
0
votes
1
answer
376
views
Magento theme Solwin-freego
I just upgrade from magento default theme to Solwin-freego theme, everything seems to be ok except that my category section is not displayed correctly since the update to the new theme.
2
votes
2
answers
2k
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....