I've my module files as following


<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <css src="Vendor_GeoIp::css/popup.css" />

My CSS file at following path


Other code of module is working fine, I cleared cache,s:upgrade,s:s:d many times but it isn't working.

I can't find any mistake in above code. What is wrong?

  • please check file permission for that css file – Jimit Bhavsar Jun 22 '19 at 10:11
  • @JimitBhavsar For testing purpose I've given 777 to module. – Kaushal Suthar Jun 22 '19 at 10:25
  • @JimitBhavsar Please check in the browser console. It displays 404 or not? – Sweety Masmiya Jun 23 '19 at 6:30
  • @JimitBhavsar No its not there too – Kaushal Suthar Jun 24 '19 at 8:34
  • did you copy pasted the Packagename_modulename from registration.php in above css source? – Oscprofessionals Jun 24 '19 at 12:11

Try to put your css in magento_theme/css directory and then run deploy command.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.