Add custom css file into magento 2 for all pages
will explain example to add mycustom.css file to magento 2.

Need default_head_blocks.xml in theme as per given path.

path shold be


Find <head> tag and place 

<css src="css/mycustom.css"/>

Add css file


Now remove cache and deploy static content. refer previous post i have posted in MAGENTO 2 BASIC COMMANDS.

Check your console mycustom.css will be loaded.

Easy one...!!!

Experienced Magento Certified Developer with a demonstrated history of working in the information technology and services industry. Skilled in SQL, PHP, XAMPP, jQuery, and Microsoft Office. Strong engineering professional with a Master of Computer Applications


Post a Comment

Popular Posts

Have You Any Questins Let Us Know.

Contact Us
Ahmedabad India