Amazon IT Services
  • Home
  • Our Services
    • Magento
    • WordPress
    • API Integrations And Extensions Development
    • Mobile App Development
    • Hire Dedicated Developers
  • About Us
  • Contact Us
Amazon IT Services
Magento
November 20, 2018
Magento, Magento 2

Add custom css file into Magento 2 for all pages

Add custom css file into Magento 2 for all pages – Today, I will explain example to add mycustom.css file to Magento 2.

Need default_head_blocks.xml in theme as per given path. Your directory path should be as per given example.

Vendor/themename/Magento_Theme/layout/default_head_blocks.xml

Find  tag and place below code –

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

Add css file in below path –

app/design/frontend/{Vendor}/{theme}/web/css/styles.css

Now remove cache and deploy static content.

Check your console mycustom.css will be loaded.

Easy one…!!! Thank You.!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • CoinDCX Signup & Earn Free ₹100 ETH Tokens
  • What is Time-Travelling?
  • Is Herbalife a Legitimate Business Opportunity?
  • How to Become a Health Consultant of Herbalife?
  • in a Relationship, Things you Must Not Go Wrong

Archives

  • November 2021
  • October 2021
  • March 2020
  • February 2020
  • January 2020
  • December 2018
  • November 2018

Categories

  • Beauty
  • Beauty Tips
  • Business
  • Career
  • Education
  • Health
  • Investment
  • Magento
  • Mental Health
  • Relationship
  • Science
  • Skin Care
  • Technology

1234 N Spring St, Los Angeles, CA 90012
mail@example.com

Copyright 2022.KlbTheme . All rights reserved

Amazon IT Services
Main Menu
  • Home
  • Our Services
    • Magento
    • WordPress
    • API Integrations And Extensions Development
    • Mobile App Development
    • Hire Dedicated Developers
  • About Us
  • Contact Us

Copyright 2022.KlbTheme . All rights reserved