New answers tagged

0

The following worked for me > In core config table change value for web/seo/use_rewrites to 0 ( 1 to 0 ) bin/magento cache:clean config Clearing Cache


0

I had a similar issue with the store of a client. The problem was that Apache isn't following symlinks on this hosting environment. It returns 403 forbidden for symlinked static content files. A workaround solution was to switch to production mode. bin/magento deploy:mode:set production


1

It's happening because you're using NGINX, so the root folder is the pub folder. Probably the issue is not the file doesn't exist there, but the generation of static files hasn't being performed. Try these commands below to set the store in the developer mode and to generate all the static files. alias mage="php -d bin/magento" && \ mage ...


0

make sure pub/static and all subfolders/files in them have 777 permission. Once done redeploy static content with php bin/magento setup:static-content:deploy -f


1

Yes, write a plugin method. app/code/xxx/StoreCodeBodyClass/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Xxx_StoreCodeBodyClass', __DIR__ ); app/code/xxx/StoreCodeBodyClass/etc/module.xml <?xml version="1.0"?> <config xmlns:xsi=&...


-2

I have done this using javascript in one of my projects. I have posted my code here. <div class="article-container"> <div class="content"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer ...


0

.page-header { background-image: url("/logoimages/Violets_Bgnd2.png"); }


1

It is unclear from your question where the html element is on the product page that you wish to show/hide. If it is in the details.phtml template you can extend this in your module or theme at Magento_Catalog\templates\product\view\details.phtml Check for your custom attribute and apply the css class name to the html element you want to hide/show: <?php ...


0

In app/design/frontend/<Vendor>/<theme>/Magento_Theme/layout/default_head_blocks.xml: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <!-- Remove local styles resources --> ...


0

try .calendar tbody .weekend insted of ”thead”


-2

There was one attribute with import CSS with XML. Please check below default_headd_blocks.xml file. app/design/frontend/{{YOUR THEME NAME HERE}}/default/Magento_Theme/layout/default_head_blocks.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <page ...


1

Once you have the extension installed you can specify an order attribute in your css XML tags. <head> <css src="Namespace_Module::css/custom.css" order="100"/> </head> You can also use the order attribute in layout XML files such as default_head_blocks.xml Any css tags you don't specify an order for are treated as ...


1

Add the following CSS: .header.content .minicart-wrapper { margin-left: auto; } .header.content .logo { margin-right: auto; } OR Remove flex: none!important from .header.content>*


-1

Try:- Path:- app\design\frontend\Zero\my_theme\Magento_Wishlist\templates\catalog\product\view\addto\wishlist.phtml <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** @var \Magento\Wishlist\Block\Catalog\Product\View\AddTo\Wishlist $block */ $objectManager = \Magento\Framework\App\...


0

The exact path where magento2 search for css is: for not inline styles: app/design/frontend/your_vendor_name/your_theme_name/web/css/email.css for inline styles: app/design/frontend/your_vendor_name/your_theme_name/web/css/email-inline.css You don't need to compile anything. Its enough to put your files in locations above. To change html from default ...


Top 50 recent answers are included