Questions tagged [custom-theme]

Denotes questions related to Custom theme for Magento

Filter by
Sorted by
Tagged with
0
votes
0answers
19 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
1answer
30 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
0answers
25 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
0answers
11 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
1answer
23 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
0answers
27 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
0answers
45 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
1answer
129 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
0answers
19 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
0answers
52 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
0answers
63 views

Child Theme is not working in Magento 2.4.2 Enterprise Version

I had created the Child theme in my Magento 2.4.2 Enterprise Version, The Child theme is created and it is showing in admin panel we also applied the Child theme using admin panel, and ran the ...
0
votes
1answer
23 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
2answers
32 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
0answers
7 views

How to move "associated products" from a grouped product to a new tab?

I would like to know how to move the Associated Products that are inside my grouped product to a brand new tab, which would be "Select your products":
0
votes
0answers
16 views

Magento 2 Programmatically set theme for specific store by store name or code

how to programmatically assign a custom theme to a specific store, knowing the name and code of the store?
0
votes
2answers
46 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
2answers
26 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
0answers
14 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 ...
0
votes
0answers
15 views

What is the way to integrate custom html,css,js dropdown to phtml file

I am created a dropdown design using html, css and js. <!doctype html> <html lang="en"> <head> <style> .dropdown-menu { max-width: max-content; ...
0
votes
1answer
826 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
1answer
43 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
2answers
135 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
1answer
96 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
1answer
44 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
4answers
250 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
1answer
74 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
0answers
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
1answer
49 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
1answer
88 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
0answers
15 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
1answer
36 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
0answers
67 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
1answer
110 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
2answers
48 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
2answers
6k 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
18 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
533 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
0answers
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
1answer
149 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
1answer
525 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
1answer
99 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
1answer
43 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
877 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
1answer
58 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
2answers
47 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
2answers
107 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
2answers
47 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
4answers
145 views

Magento2 - Admin keeps on loading

Why Magento2 Admin Panel is too much slow and keeps on loading ?
0
votes
1answer
33 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
1answer
58 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\...