Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [theme]

Questions about creating, modifying and configuring Magento themes

5
votes
1answer
35 views

Magento 2 : Getting error like “Only default scope allowed” when click to the theme option at the backend

Getting error like below : 1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Only default scope allowed Exception #0 (Magento\Framework\Exception\LocalizedException): ...
2
votes
1answer
87 views

Override empty.xml in a custom theme

I'm creating a new theme for a Magento 2.2.6 community edition and I need to wrap all the content inside a CSS class. To do so I had to change <main id="maincontent" class="page-main"> to &...
1
vote
3answers
65 views

Magento 2: How to override theme LESS styles within custom module

I am running Magento 2.3 on Ubuntu 18.04 server with Apache 2.4, MariaDB and PHP 7.2. Magento is running in developer mode. I have created a custom theme which inherits from the Magento/blank theme. ...
2
votes
1answer
22 views

Removing block from layout doesn't work

I want to remove the register-link from the header links, so I have wrote in the default.xml of the Module_Customer of my theme: <referenceBlock element="register-link" remove="true"/> The ...
2
votes
1answer
51 views

How do I extend css with theme that doesn't call extend?

sorry if this is obvious or has been answered. I tried looking around and didn't see it. Also I'm getting around Magento okay but by no means an expert. I have a Magento 2 theme that it was ...
1
vote
1answer
24 views

Find the block class instantiated into a phtml file

I need to modify a block class called in a phtml file, this is the customer.phtml file: <?php // @codingStandardsIgnoreFile ?> <?php if($block->customerLoggedIn()): ?> <li ...
0
votes
1answer
1k views

Magento 2 - Creating a child theme

I purchased a theme for a Magento 2 website. I know want to create a child theme to modify some of the styles, etc. The theme purchased is called Porto and resides in /app/design/frontend/Smartwave/...
1
vote
1answer
1k views

how to change default theme color in magento 1.9?

How can the default theme color be changed in Magento 1.9 i want to change #Theme Color 1 And #Theme color 2 but i can't find how? My admin configuration is :
1
vote
3answers
3k views

Magento 2 styles not showing after choosing luma theme

I have a fresh new intall of magento 2, which appeared to be working fine till I changed the Theme to Luma. Then the frontend styles disapeared, the info is there, as well as the products, but no ...
3
votes
2answers
1k views

Cannot read contents from file app\design\adminhtml\Magento\backend\etc\module.xml in Magento 2

I have created a adminhtml theme but it's throwing error. Could you please clarify me where I went wrong? my code is: root/app/design/adminhtml/Magento/backend/composer.json { "name": "magento/...
0
votes
1answer
1k views

mage/translation not working magento 2 (translation issue)

I am working on pdp page (mobile view), in drop down i need to show out of stock if qty is out of stock and low stock if qty is low stock, it is working as expected but it is not getting translated to ...
2
votes
2answers
1k views

Magento 2 and Client Side Less Compilation

I have stock Magento 2 installed and running with a custom theme that uses the 'blank' theme as its parent. My custom theme is active on my store and it works, I can create my own styles and template ...
4
votes
3answers
5k views

How can I override default CSS properties in my theme?

I've already created a custom.css file which include some properties that I use in my custom theme (inherits from Blank theme). I can apply successfully those custom properties, however some ...
4
votes
2answers
79 views

Create less file for custom Theme

How to create new *.less file in Magento 2.3 project ? Here is my existing Theme: Here is my existing less file that DOES NOT work: Nothing is work here: My question is how to add custom less code/...
4
votes
3answers
2k views

Creating a custom navigation bar

I successfully created a module which outputs "Hello World" on my CMS homepage. Now, I want to make this module a header / navigation bar which replaces the one of the blank theme. I also successfully ...
2
votes
2answers
23 views

find the ul tag inside header

I need to find the template or layout file that contains this ul tag: <ul class="header links"> <li class="greet welcome" data-bind="scope: 'customer'"> <!-- ko if: ...
2
votes
2answers
17 views

Page Styling (css) does not appear in the new Theme implementation (descendant of Luma Theme)

I just created empty theme which is descendant of Luma theme. but unfortunately the styling is not appear: theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
2answers
874 views

confirmation popup on place order button

I want to add confirmation popup on place order button at final check out step.The flow is like if (click on I understood){ //then proceed } else{ //cancel } I tried to add simple jquery and ...
4
votes
3answers
2k views

Magento 2: Can't update product page layout in custom theme

(heavily modified the question for simplicity and clarity) As a test case I created <custom-theme>/Magento_Theme/layout/default_head_blocks.xml. Creating and modifying this file, according to ...
6
votes
1answer
13k views

how to create custom layout page in custom theme

I want to create a custom page layout in my custom theme. I have created a custom theme named "ktheme" with a parent theme. I created cutome_home.xml in the layout folder but I am just getting a blank ...
1
vote
1answer
34 views

Cannot find the register link phtml file

I enabled the path template suggestion and It doesn't show the path for the 'Create an account' link. Reading the html home page source I've saw these tags: <ul class="header links"> <li ...
0
votes
1answer
12 views

create new container in theme

i wanna remove footer container and create new footer but it does not work. this is my code <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
0answers
11 views

Updating theme results in 500 error

I have magento 2.3.1, and I'm using the pearl theme. I tried to update the theme per their directions , but after doing that my site is down and all that I am getting is 500 errors. What can I do to ...
3
votes
2answers
2k views

Magento 2 child theme: CSS files not included

I want to add some CSS files. So I created a child theme. In Backend the theme is activated. theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
1
vote
0answers
11 views

Changing theme does not work

I have changed something in my theme, but it does not appear after deploying static files. Removed all necessary folders and cleaned cache but still not working. Strange thing is, that on my test ...
2
votes
2answers
1k views

Magento 2 custom theme based on parent Luma theme necessary files

I created my custom theme based on Magento Luma theme: In /app/design/frontend/MyVendorName/ncs-theme/theme.xml I added <parent>Magento/luma</parent> But when I look at my frontend I see ...
3
votes
1answer
25 views

Theme Preview Image does not appear on view theme admin

I just following this tutorial https://jamersan.com/lets-get-started-theming-magento-2-part-1/ , in this tutorial I learn about how to make Magento Theme, but unfortunately I unable to show Theme ...
0
votes
1answer
89 views

How to prevent theme inheritance

Does anyone know how to prevent your custom theme from inheriting from a parent theme like blank or luma? This apparently is adding its own css, and js, files to the page and is interfering with our ...
1
vote
1answer
328 views

Mobile menu on entire Magento2 site [closed]

I can't find any help how to make menu like mobile also for desktop. How I can change breakpoint or something to have one menu style.
1
vote
1answer
2k views

Changing Custom theme color in Magento 2

MY custom theme extends Magento Blank theme.Following this link, http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/css-practice.html I added _theme.less in my css/source folder &...
0
votes
3answers
1k views

How to remove a payment option from onepage checkout?

In onepage checkout page , there is a field called "Payment Information". I want to remove the first option as shown in screenshot "Credit Card / Visa, Mastercard, AMEX, JCB, Diners" . I've ...
1
vote
0answers
21 views

Hide Product DropDown in Magento 2 [closed]

I am using an extension of the mageworx "Advanced Configurable Option ..." https://www.mageworx.com/magento-2-advanced-product-options-suite.html I could have used the basic magento configurable ...
1
vote
1answer
1k views

How to open a 600x400 pop up window, and show a static .html file, from a theme .phtml file?

I'm using Magento 1.9 with the latest version of Ultimo Theme. We used to use FancyBox to show some static .html files, from template .phtml files. But that does not work anymore, after upgrading to ...
0
votes
1answer
460 views

ajax autocomplete search with image result

I tried to install some extensions regarding Ajax search form I would like search in the catalog via ajax, so have suggestions and images in the results (see image) When i Install any extensions, once ...
1
vote
2answers
116 views

during theme installation im getting error

during theme installation, I'm getting this error: Module 'Magento_InventoryCatalog': [ERROR] Magento\Framework\Setup\Exception: Unable to apply patch Magento\InventoryCatalog\Setup\Patch\Schema\...
0
votes
1answer
2k views

Magento 2 : Undefined Index : Default

In Backend When I try to change theme at that time I got this error Exception #0 (Exception): Notice: Undefined index: default in /home/cloudpanel/htdocs/project/app/code/Codazon/ThemeOptions/...
3
votes
2answers
1k views

Magento 2: How to call Widget programatically?

I have created widget Type: CMS Static Block Theme: My Theme Display on: All Pages Container: CMS Footer Links Template: CMS Static Block Default Template Widget Options: Block (My selected block) ...
1
vote
0answers
14 views

Undefined variable: _ENV

every time I add the following directory and xml file: public_html/magento/app/design/frontend/Vendor/theme/Magento_Catalog/layout/catalog_product_view.xml Magento returns the following error on ...
0
votes
1answer
132 views

CSS and JS files for external theme not working in magento

I installed magento 2 and the luma theme works fine but on installing an external theme(multi stores by netbase), the page only loaded the header and complained about not being about not being able to ...
1
vote
2answers
28 views

Move category description from admin panel (Layout Update XML) in Magento 2

Our customer wanted to show category description after the product list by default, so we added a new container and the following line to the default.xml in out theme: <move element="category....
3
votes
1answer
33 views

Magento 2 CleverSoft theme Modules conflicting with other theme instaled on another website on the same magento Installtion

Good Evening everyone, I configured two websites on Magento 2. and set two different themes to the Websites. First theme was running Fine but when I Installed the another theme which is CleverSoft ...
1
vote
0answers
22 views

Installation limit on purchased themes for Magento 2?

Is there a limit on the number of stores or sites on which a purchased Magento 2 theme can be installed?
2
votes
0answers
22 views

Change theme color from admin dashboard in M2

I want to add an input field that will change the main color of the Luma theme. Could someone help me on what should my custom extension include?
1
vote
4answers
632 views

How to override Magento checkout shipping.html

myproject/vendor/magento/module-checkout/view/frontend/web/template/shipping.html Overring using the fallback. myproject/app/design/frontend/Solace/olsto_child/Magento_Checkout/web/template/shipping....
5
votes
4answers
2k views

Design Configuration page infinite loading

Since updating to Magento 2.1.0 I have not been able to change themes as the theme configuration page does not load. It simply shows the rotating loading icon, there are no errors shown in the console ...
0
votes
1answer
54 views

Magento 2 Theme Development - grunt watch not detecting changes of custom LESS file

We are running Magento 2 in version 2.3.1, but the error occurred in version 2.3.0 also. The situation is the following: we've created a custom theme which has Magento/luma theme as parent. according ...
2
votes
2answers
2k views

Magento 2 - Overwrite module-swatches view.xml

How do you overwrite the view.xml in \vendor\magento\module-swatches\etc\view.xml in your own template? I want to overwrite the sizes for swatch_image and swatch_image_base. I tried putting the ...
0
votes
2answers
138 views

Issue with multiple custom product details tabs not displaying

In catalog_product_view.xml I have the following section: <referenceBlock name="product.info.details"> <block class="Magento\Framework\View\Element\Template" template="Magento_Catalog::...
1
vote
1answer
117 views

Magento 2.2.5 - Uncaught TypeError: Cannot read property 'dialog' of undefined

Installed Magento 2.2.5 with sample data, everything works fine. Added a new theme Ves Need theme, got the below issues on the home page console. Uncaught TypeError: Cannot read property 'dialog'...
1
vote
2answers
552 views

Magento 1.9 - Unistall theme

I want to unistall an old theme from my Magento. I read for the moment that is possible only from ftp and delete the current folders. I tried from the Magento Connect Manager but my custom theme does ...