Solved! Go to Solution.
this is the path of where style sheet saved
app/design/frontend/vendorname/theme/web/css/custom.css
app/design/frontend/vendorname/theme/Magento_Theme/layout/default_head_blocks.xml
<css src="css/custom.css" order="100"/>
after that you run these commands
rm -rf var/cache pub/static/frontend
php -dmemory_limit=6G bin/magento setup:upgrade
php -dmemory_limit=6G bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
------------------------------------------------
If you've found one of my answers useful, please give"Kudos" or "Accept as Solution"
Hello @safaa_alnabhan
Please try run below commands using "Windows putty program/ssh":
rm -rf var/cache var/di pub/static/frontend php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento cache:flush
Let me know if you still face any issue after this.
Hello @safaa_alnabhan,
How to use PuTTY? Here is good example, Please review it
https://mediatemple.net/community/products/dv/204404604/using-ssh-in-putty-
In order to do add custom CSS and load last, you must set up a custom theme.
app / design / frontend / [vendor] / [theme] / Magento_Theme / layout app / design / frontend / [vendor] / [theme] / web / cssCreate the following files:
app / design / frontend / [vendor] / [theme] / Magento_Theme / layout / default_head_blocks.xml app / design / frontend / [vendor] / [theme] / web / css / local-m.css app / design / frontend / [vendor] / [theme] / web / css / local-l.cssplace this code within default_head_blocks.xml
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../vendor/magento/framework/Module/etc/module.xsd"> <head> <css src="css/local-m.css" /> <css src="css/local-l.css" media="screen and (min-width: 768px)"/> </head> </page>
--
After login terminal, please go to magento root directory and follow below command
rm -rf pub/static/frontend/* pub/static/adminhtml/* var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ var/composer_home generated/ php bin/magento setup:upgrade php -dmemory_limit=6G bin/magento setup:static-content:deploy -f chmod -Rf 777 pub/ var/ php bin/magento cache:clean
--
If my answer is useful, please Accept as Solution & give Kudos
this is the path of where style sheet saved
app/design/frontend/vendorname/theme/web/css/custom.css
app/design/frontend/vendorname/theme/Magento_Theme/layout/default_head_blocks.xml
<css src="css/custom.css" order="100"/>
after that you run these commands
rm -rf var/cache pub/static/frontend
php -dmemory_limit=6G bin/magento setup:upgrade
php -dmemory_limit=6G bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
------------------------------------------------
If you've found one of my answers useful, please give"Kudos" or "Accept as Solution"
Hello @safaa_alnabhan
Please try run below commands using "Windows putty program/ssh":
rm -rf var/cache var/di pub/static/frontend php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento cache:flush
Let me know if you still face any issue after this.
Hello @safaa_alnabhan,
How to use PuTTY? Here is good example, Please review it
https://mediatemple.net/community/products/dv/204404604/using-ssh-in-putty-
In order to do add custom CSS and load last, you must set up a custom theme.
app / design / frontend / [vendor] / [theme] / Magento_Theme / layout app / design / frontend / [vendor] / [theme] / web / cssCreate the following files:
app / design / frontend / [vendor] / [theme] / Magento_Theme / layout / default_head_blocks.xml app / design / frontend / [vendor] / [theme] / web / css / local-m.css app / design / frontend / [vendor] / [theme] / web / css / local-l.cssplace this code within default_head_blocks.xml
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../vendor/magento/framework/Module/etc/module.xsd"> <head> <css src="css/local-m.css" /> <css src="css/local-l.css" media="screen and (min-width: 768px)"/> </head> </page>
--
After login terminal, please go to magento root directory and follow below command
rm -rf pub/static/frontend/* pub/static/adminhtml/* var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ var/composer_home generated/ php bin/magento setup:upgrade php -dmemory_limit=6G bin/magento setup:static-content:deploy -f chmod -Rf 777 pub/ var/ php bin/magento cache:clean
--
If my answer is useful, please Accept as Solution & give Kudos
after copy vendor/magento/theme-frontend-blank/web dir to my custom theme working fine