0

I've my module files as following

app/code/Vendor/GeoIp/view/frontend/layout/default.xml

<?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">
    <head>
        <css src="Vendor_GeoIp::css/popup.css" />
    </head>
</page>

My CSS file at following path

app/code/Vendor/GeoIp/view/frontend/web/css/popup.css

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?

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

1 Answer 1

0

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 and acknowledge you have read our privacy policy.

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