Questions tagged [custom-theme]

Denotes questions related to Custom theme for Magento

Filter by
Sorted by
Tagged with
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\...
1
vote
0answers
8 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
23 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 ...
0
votes
1answer
29 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
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.
0
votes
1answer
21 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
25 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 ...
0
votes
2answers
569 views

Magento2: Use Blank-Theme-Icons/Blank-Theme-Icons.woff2 in my custom theme

In PageSpeed Insights: Ensure text remains visible during Webfont load Leverage the font-display CSS feature to ensure text is user-visible while web fonts are loading. Blank-Theme-Icons/Blank-Theme-...
1
vote
1answer
48 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
1answer
2k views

Magento 2 How to correctly change style in less

I creat my theme, same as luma, parent Blank. I try change style for search (add background-color and change opticaly. I see in less file: app\design\frontend\Vendor\default\Magento_CatalogSearch\web\...
1
vote
1answer
4k views

Magento 2: Uncaught Error: Script error for: smartmenus

I am trying to implement the navigation menu with Bootstrap Smartmenus but the theme does not pick up the javaScript. Can somebody help me out? Vendor/Name/requirejs-config.js var config = { map: {...
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 ...
0
votes
3answers
28 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
24 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]: ...
1
vote
1answer
158 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
2k views

Magento2 How to pass argument parameters with multiple class

How to pass argument Parameter configuration inheritance in using theme module inside di.xml here one thing in our theme inside header file inside define code below <?php $objectManager = \...
0
votes
0answers
14 views

Couldn't Over ride magento2 logo from custom theme

I am overriding logo with custom theme . https://i.imgur.com/WRvopNM.png It modifies the size but can't change the logo itself. what can be the problem?
0
votes
1answer
36 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 ...
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/...
0
votes
1answer
64 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
78 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.
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: ...
0
votes
1answer
20 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
31 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
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 ...
0
votes
1answer
24 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
164 views

Magneto2 Adding styles before style-l.css

I got the answer in this link it's working only in the home page I needed it to work in each and every page please help me with this
0
votes
2answers
31 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
52 views

Magento2 - Admin keeps on loading

Why Magento2 Admin Panel is too much slow and keeps on loading ?
1
vote
2answers
508 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-...
0
votes
1answer
29 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
28 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
0answers
20 views

How to move element of main menu in Magento?

I want to move main menu after Slider in vertical Position Hi Everyone! I am creating a custom theme and want to change position of Main below the slider in Vertical Position How can I do that????
0
votes
0answers
11 views

I want to move main menu after Slider in vertical Position

I am creating a custom theme and want to change position of Main below the slider in Vertical Position How can I do that????
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 ...
4
votes
2answers
872 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 ...
0
votes
0answers
29 views

Update Magento 2 jquery-ui.js version in Custom Theme

Is there a way to override Magento 2 lib\web\jquery\jquery-ui.js version in my Custom Theme? I want to upgrade it to version 1.12.1.
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 ?
0
votes
3answers
55 views

Custom .less files not compiling at all

I have found that the less files are not compiling in my custom theme. at all. originally I discovered the problem when I made changes to my _extend. less file and no changes occurred, but now I have ...
1
vote
1answer
255 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....
0
votes
2answers
659 views

how to remove Open Sans font in magento 2

I need to remove Open Sans font in our Magento2 site. I have inherited the luma theme, so how to override the blank theme _typography.less file?
0
votes
0answers
18 views

Question about the Scripts and Style Sheets field?

I was just wondering about the "Scripts and Style Sheets" field in the default store view in the CMS. I have written custom styles in this field and they reflect on the front end. Why do I need to ...
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
254 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
1answer
289 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/...
0
votes
0answers
33 views

Magento 2 mixin error

I didn't use mixin in my custom theme or anything. But I get the below error. TypeError: mixin is not a function My require-config.js is below. var config = { paths: { 'owl.carousel': '...
0
votes
1answer
347 views

adding custom css file priority in magento2

I have added custom CSS file in custom theme with below code in [vendor] / [theme] / Magento_Theme / layout / default_head_blocks.xml <head> <css src="css/custom.css" /> &...
0
votes
1answer
272 views

Changing favicon for admin side theme only - Magento 2.3

I've made the custom adminhtml theme and changed the login logo and the default top left logo on dashboard, however I'm unable to change the admin favicon. In the default.xml that I'm using to ...
0
votes
0answers
19 views

Custom theme not working in Magento 2.3. As well as the default.xml

It seems that my custom theme is not working as well as my default.xml. For now, I am trying to remove the copyright part for Luma but when I override the existing theme, my default.xml is not working....
0
votes
1answer
160 views

How to build custom theme with page and static blocks in Magento2?

I am trying to create custom theme with inbuilt Cms pages and Blocks? For example once the theme files moved and installed can able to see all the blocks and pages are created in magento. I followed ...