A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
11

Here is the short answer: Magento load all css assets into asset groups. Asset groups are created based on the css properties and which is what stands crucial for the rendering order of css assets. In Details First of all, There are lot of things happens behind the scene. So in order to make this answer abbreviated as possible, I would love to consider ...


10

I found my problem... Magento 2 has a built in feature that allows the user to specify countries for optional post code. In that feature, you can remove validation for selected countries. Settings can be found in: Admin Panel > Stores > Settings > Configuration > General > General > Country options > Zip/Postal Code is Optional for You have to un-tick ...


5

EDIT: This describes why it was failing and a way to work around it, but JNDPNT/Altravista has the right answer so I updated. Trouble is, we want to run setup:upgrade as late in the deploy process as possible - in the chance something happens to bail the deploy, allows easier rollback than after setup:upgrade has run. It's unfortunate to have to change this ...


4

when you create a new theme you need to run bin/magento setup:upgrade before deploy


4

I was facing the same problem after creating a custom theme. Whenever I tried to deploy the static content using command: php bin/magento setup:static-content:deploy -f I was facing an error saying: Cannot read contents from file ...... etc. After debugging, I found that in the theme table of my database.. The parent_id for the newly created theme was ...


4

You should first start by understanding basic structure of Magento if you are a beginner, for that you can read from devdocs. Check here, you can take some help of basics of frontend development. I also suggest to read some blogs of experts suggested here Even you can attend bootcamps arranged by Magento community itself.


4

Create below path in your custom theme: app/design/frontend/{{your package}}/{{your theme}}/Magento_Checkout/ Copy the required template, layout or web files to be modified from vendor/magento/module-checkout/view/frontend Update the files and flush cache to get the changes reflected. If you are modifying web files then don't forget to redeploy the ...


4

We are creating a custom theme based on pwa-studio with this repo https://github.com/Jordaneisenburger/fallback-studio


3

The value of the htmlId attribute must be matched by the regular expression [a-zA-Z][a-zA-Z\d-_:]. [a-zA-Z][a-zA-Z\d-_:] means Start with a letter (uppercase or lowercase) rest of the characters can be: a letter (uppercase or lowercase) a digit (0 to 9) the character - (minus) the character _ (underscore) the character : (colon) That's it. You are ...


3

It is possible that the type of your theme is changed to virtual. You can check the same in table theme. The value in type column has to be 0. 0: Physical 1: Virtual 2: Staging


3

Magento 2.2 and 2.1 does not have feature for support the pwa. One of most import component of PWA that is GraphQl that does not exit Magento 2.1 and magento 2.2. If you want to use pwa then use Magento version 2.3.


3

app/design/frontend/Module/theme/Magento_Checkout/web/template/minicart/item/default.html <div class="product-item-pricing"> <!-- ko if: canApplyMsrp --> <div class="details-map"> <span class="label" data-bind="i18n: 'Price'"></span> <span class="value" ...


2

Use as below... <css src="Magento_Theme::css/home/slider.css" media="all" /> instead of <css src="Magento_Theme::css/home/slider.css" />


2

I have patch for this issue. You need to override these two files. vendor/magento/module-wishlist/Helper/Data.php vendor/magento/module-wishlist/Observer/CustomerLogin.php Override Data.php and CustomerLogin.php with di.xml app/code/{Vendor}/{Module}/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...


2

This is too broad question but i tried sum up for you. You can create the basic theme with currently provided link. But for creating theme data import you need to create module's for importing data. Like if follow this example for creating the cms block for run time. Create installer Script Create csv data Save with model Now taking example <?php ...


2

The correct path is: app/design/frontend/MJ/theme/Magento_Braintree/web/template/form.html Delete all the other files and make sure you’ve deployed static content. Depending on the version of Magento 2 and your deployment mode, that might be what’s causing the issue. Go to pub/static/{your file path} and check if the file exists. It will only work when ...


2

Ok, it seems you can use the displayArea rather than trying to remove the component. Setting; displayArea="nothing" seems to have removed it


2

If you only need to translate success message Than There no need to override whole controller. You can create CSV file and add your desired translation. app/design/frontend/VendorName/ThemeName/i18n/en_US.csv Than add as below. "Thank you for registering with %1.","Your custom text" Deploy static content and clear cache.


2

I cannot explain this, but the error was fixed by just rearranging the elements in one line like this: <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::THEME, 'frontend/Test/mine', __DIR__ ); Reference here


2

Correct name should be: Magento_PageCache if you want to override template(.phtml), theme file path will be: app/design/frontend/{Package}/{theme}/Magento_PageCache/templates For layout(.xml) it should be: app/design/frontend/{Package}/{theme}/Magento_PageCache/layout


1

Just check registration.php file on UTF-8 BOM elements. This a symbol on the start of file what can be seen without special mode in editors.


1

You can change the text "Save 60% off sale" from the static block. Go to Content -> Static Blocks from admin and find the static block "Home Images Block" with an identifier "home-images-two" and edit text and save this static block. After this flush cache. You can change the text "Find Your Next Magento 2 Theme" from the static block. Go to Content -> ...


1

Try to run below commands in magento2 directory php bin/magento setup:upgrade //Install/upgrade modules, clear caches, di, view_preprocessed, etc. php bin/magento setup:static-content:deploy [<languages>] // Generate static content


1

This is not a valid json {'openedState': 'active', , 'active': true} Notice the 2 commas with just a blank space between them. Check where this is generated and why do you get an empty space.


1

Weird problems usually have weird solutions All was working fine, but some catalog categories in project had checked attribute "Use parent category settings", and that parent category had forced the original Theme1/custom


1

Try the below xml code: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="content"> <block class="Backend\RewriteSales\...


1

You can remove class by this way: Go to your admin panel > cms home page. There is one tab DESIGN and in this tab add your XML code in Layout Update XML area. <referenceContainer name="container_name" htmlClass=""> Keep empty so it will remove the class. Run command: php bin/magento cache:flush


1

The workflow you described (putting the templates inside app/design/frontend/Vendor/theme/templates) is not actually supported (actually, I've never tried myself, but if it is supported, is definetly not a good practice). You should add your new templates inside the module folder (I ment, the folder that overrides a module in your theme) that you actually ...


1

Homepage is assigned to my custom theme whose id is 12. I deleted it so I got this by checking cms_page table. It's common to have such problem when you working with custom themes and delete theme. My Suggestion Please check theme,core_config_data table for theme entry and eav_attribute,catalog_product_entity_varchar,catalog_category_entity_varchar,...


1

Kindly check the code of default.xml. You specify template file name "customeline.phtml" and you create file "customline.phtml". Change file name in your code like this. <referenceContainer name="header-wrapper"> <block class="Magento\Framework\View\Element\Template" name="customeline" template="Magento_Theme::customline.phtml"/> </...


Only top voted, non community-wiki answers of a minimum length are eligible