Questions tagged [theme]

Questions about creating, modifying and configuring Magento themes

0
votes
1answer
21 views

Unable to remove content from homepage

I'm trying to remove content from my homepage. I have just installed a theme and even if I set a blank page as a default page (homepage) the content get's added. I tried to figure out if it's a file ...
6
votes
2answers
2k views

Magento 2: How to setup separate theme for desktop and mobile?

I want to load device wise (like mobile and tablet) theme in Magento 2. How can I do that? I have tried below code in User Agent Rules but not working for me: iPhone|iPod|BlackBerry|Palm|Googlebot-...
4
votes
6answers
1k views

setup:static-content:deploy NOT UPDATE

I'm using Magento 2.2.2 & Redis, I have others language store in my Magento. I edited the app/fronted/(theme) .phtml file and then ran php bin/magento setup:static-content:deploy or php bin/...
0
votes
1answer
38 views

Magento 2 Custom module default.xml CSS not called

I've my module files as following app/code/Vendor/GeoIp/view/frontend/layout/default.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
53 views

Possible way to fix luma Layout

Encounter this issue (Layout are wrong ).What is the possible issue for this? Tried dicompile, clear cache and reindex.Still not working exception.log main.CRITICAL: Path "/var/www/html/var/...
0
votes
1answer
39 views

Magento 2 custom theme development css multistore - without locale folders

As a seasoned Magento 1 developer, which is of no use what-so-ever here, I am attempting to work on creating a custom Magento 2 theme for a new multi-store site. What a perpendicular learning curve ...
1
vote
1answer
98 views

Implement a custom theme Magento 2

I am not able to implement a custom theme in Magento 2 (on mac os x) can you provide me with information please?
53
votes
17answers
56k views

Required parameter 'theme_dir' was not passed

What is the error message: Required parameter 'theme_dir' was not passed Is it related to in Magento 2? And how can this problem be fixed?
1
vote
0answers
19 views

what things and concept i should learn before learning magento 2

I am a php , html , css , javascript developer and i have worked on wordpress , laravel also , now i am learning magento 2 and i am not understanding most of the things . i want to know what concepts ...
0
votes
0answers
18 views

Can't make changes to custom theme footer

I've been trying to make some changes in the footer for a Magento store. This part of the footer comes from our own theme, under Magento_Theme/templates/html/footer/footer-menu.phtml. However I can't ...
0
votes
1answer
21 views

Is it possible to install themes without SSH, just by using FTP?

I have a vps, installed Porto theme on Magento 2, I paid the theme developers for support. Every time I face theme installation problem, or things like that, I contact the support. They keep saying ...
0
votes
2answers
39 views

Is it necessary to use a child theme?

I'm using Magento 2.3.1 and Porto theme, that theme is a hassle to install. Just got it done. This is a Porto child theme Is it necessary to install it? is there an easy way to install it without ...
0
votes
1answer
23 views

theme magento 2 not working

I installed magento 2 on my computer and I copied the code of the theme in the app\design and pub\ that works on the server but it does not work properly on my computer. Help
0
votes
1answer
729 views

Magento 2 custom Theme no css and products loaded in frontend

I created a new Template based on the Blanco/Luma theme as pointed out in several howto's as in this topic) Strange thing is that the css and the products (and images) which are available do not load ...
2
votes
3answers
32 views

theme language translation

I have installed a new theme, I created the i18n directory with the csv file. I entered this command to create the dictionary: php magento2/bin/magento i18n:collect-phrases --output="magento2/app/...
0
votes
1answer
773 views

Template file not found after upgrade magento and theme

I've successfull update a magento from 1.7.2 to 1.9.2 and all work fine. Then I've upgrade the theme and now not working fine, in homepage the error is: CRIT (2): Not valid template file: ...
0
votes
0answers
17 views

Magento 2.2 - It is possible to change the font on the Magento Admin?

Do we need any themes or we can change the font from the existing Magento files as we change the fonts on the frontend?
0
votes
1answer
64 views

Changing file permissions to 777 breaks website

I am trying to install a theme to a magento site, but running setup:upgrade after the files are transferred breaks all css and javascript. I read that the file permissions may be an issue, so after ...
0
votes
1answer
19 views

2 Contact Pages, need to remove one [closed]

I have a Contact Us page within the main menu in my site: https://staging.propmasters.net/ The main menu links to https://staging.propmasters.net/contactus.html Where can I edit this content? I've ...
0
votes
0answers
13 views

Magento 1.14 custom skin not applied to products

I created a custom design skin and assigned it to some categories under Manage Categories/Custom Design tab, and selected Yes to Apply To Products. This works fine if the user drills down through the ...
0
votes
0answers
10 views

Magento 2: Changes of Fontsizes in _theme.less don't cascade more than one level

I currently have an issue with theme inheritance. My structure is as follows: magento luma | -> Company Main Theme | -> Sub Theme 1 | -> Sub Sub Theme 1 | -> Sub ...
5
votes
2answers
6k views

How to Change Footer Copyright Text in Magento2?

I want to customize Magento\Theme\Block\Html\Footer class in magento2. how can i change some text and style of footer copyright text with custom module..
1
vote
1answer
163 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'...
2
votes
1answer
575 views

magento2 registration php

What is the difference between a THEME And Module in Magento 2 ? Theme Registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar:...
2
votes
5answers
2k views

Magento 2: Permission issue with generated directory

I'm having issues installing a theme due to the 'generated' directory not generating all of the files that need to be generated after I run command: php bin/magento setup:upgrade Which I think is ...
0
votes
2answers
907 views

How to add header to checkout page on magento 2 LUMA theme

I have headers on all the pages in LUMA theme except the checkout one. Screen shots are attached for the reference. As you can see in the attached images, we have header on product view page and its ...
24
votes
2answers
17k views

Something went wrong while saving this configuration: Area is already set

I am unable to apply a new theme in a clean install of 2.2.4. Upading to 2.2.5 does not fix the problem.
1
vote
0answers
23 views

How to set “theme_dir” error. Magento 2 [duplicate]

I just copied the data form the site on which I'll work but after replacing that data with my custom luma first it gives me the Permission error I give them permission but after that it gives me 1 ...
2
votes
1answer
39 views

How to override the entire product page with a new template for products which are Out of Stock?

I would like to change the way Magento 2's product page looks for products which are Out of Stock. Basically I want to replace the entire product page with a simple message (and maybe a picture of the ...
2
votes
1answer
19 views

make sticky header without custom js code

I tried to make the header sticky using the default jquery code: $('.page-header').mage('sticky', { container: '.page-wrapper' }); I added this piece of code into the theme.js file in the ...
0
votes
1answer
62 views

XML declaration allowed only at the start of the document

i am getting this error on developer mode but works in default Exception #0 (Magento\Framework\Config\Dom\ValidationException): Theme layout update file XML declaration allowed only at the start of ...
4
votes
1answer
840 views

Customer name is missing in welcome message after login

In header, there is a welcome message which can be configured in the Magento backend. However after login, i found that the customer fullname is not insert into the welcome message,(i.e. always ...
15
votes
3answers
2k views

Magento2 design fallback logic

We already know design fallback logic from Magento 1.x: Current package / Current Theme Current Package / Default theme Base Package / Default theme Now. i want to know What is the design fallback ...
3
votes
1answer
46 views

Move block inside another block

I want to put the header.links into another block. this is the icon.phtml file: <div data-block="dropdown" class="minicart-wrapper"> <i class='fas fa-user-circle action' data-trigger='...
1
vote
1answer
372 views

Jump to an anchor after “Sort By” is changed on category page in Magento 2

I'm developing a custom theme where the category page starts with some content and the list of products is below such content. I would like to keep the view anchored to the product list when the user ...
3
votes
1answer
894 views

CSS not showing for “NEW” or “SALE” label

So I followed this tutorial to add "NEW" or "SALE" label for this site: http://www.ubertheme.com/docs/add-product-labels/. The label does show up on the product icon but for some reason the CSS isn't ...
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 ...
1
vote
2answers
35 views

Move recently viewed product or completely remove it

Magento has a great feature to show recently viewed product, but now I need to move this element (recently viewed product) to exactly on the top of footer. I have no clue about how to show/hide or ...
5
votes
1answer
40 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
111 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
73 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
25 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
53 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
25 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 ...