0

I created a custom theme that inherits from another theme that in turn inherits from Magento Luma theme.

I added the the file default_head_blocks.xml to my theme:

<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"/>
 <link src="//fonts.googleapis.com/css?family=Shadows+Into+Light" src_type="url" rel="stylesheet" type="text/css"/>
 <css src="owl.carousel/assets/owl.carousel.css" />
 <css src="fancybox/css/jquery.fancybox.css" />
 <css src="icon-fonts/css/porto-icons-codes.css" />
 <css src="icon-fonts/css/animation.css" />
 <script src="jquery.js" />
 <script src="fancybox/js/jquery.fancybox.js" />
 </head>
</page>

After that everthing was still working. But when I add the follwoing line to the file then the site breaks which means empty page in Firefox. Chrome says 500.

<link src="//fonts.googleapis.com/css?family=Exo+2" src_type="url" rel="stylesheet" type="text/css"/>

After adding the line to the file. I execute

magento cache:clean
magento setup:di:compile

There are neither errors in the browser console nor in the server logs.

Why is the site breaking when I add this line?

asked Mar 31, 2018 at 11:00
2

1 Answer 1

0

Please try to run below commands :

magento setup:static-content:deploy

magento setup:upgrade

magento c:c

magento c:f

answered May 15, 2018 at 11:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.