Skip to main content
4 of 4
added 44 characters in body

CSS are compiled but not called in frontend

I added css on my website. One is bootstrap and one is a custom css. I addedd it on my Magento_Theme folder (inside layout/default_head_block.xml)

<css src="css/bootstrap/css/bootstrap.css" order="100" />
<css src="css/reflexmania2-custom.css" order="100" />     

suddenly there was a problem on these css. They are not loaded in the frontend css inside the HEAD tag.

i tried cleaning cache, generated folders, view_preprocessed and then running

setup:upgrade
setup:di:compile
setup:static-content:deploy 

but nothing. they are not loaded.

they are compiled because i can see inside my pub/static folder.

i'm getting crazy. How can i solve this problem?

Thanks for help

EDIT: 1 --> added xml default_head_blocks.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>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>

 <css src="css/bootstrap/css/bootstrap.css" order="100" />
 <css src="https://use.fontawesome.com/releases/v5.4.1/css/all.css"  src_type="url" order="100" />
 <css src="css/reflexmania2-custom.css" order="100" />

</head>
</page>

Some notes: inside my Pub/static folder i have got all my css and layout.they are not working nor called from my theme. If i restore a previous version of my theme is the same. I think that there is some problem on pub static or some permission but i cannot understand where.

!(https://i.sstatic.net/4TDjf.png)