Jump to content

Not able to find the Google Web Fonts line in .tpl files - PS 1.7.1.x - HELP


Civitasregis

Recommended Posts

Hello everyone,

 

I have been running PageSpeed Insights tests on my website to improve its SEO placement with Google.

The tests show a problem in the section "Eliminate render-blocking JavaScript and CSS in above-the-fold content". This is what appears: "Your page has 3 blocking CSS resources. This causes a delay in rendering your page. None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.

Optimize CSS Delivery of the following:

https://fonts.googleapis.com/css?family=Vollkorn:regular

etc.

etc."

 

(You can see my PageSpeed Insight test in full here: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.civitasregis.com%2F§)

 

I have been researching online and I have successfully downloaded the Vollkorn font from https://google-webfonts-helper.herokuapp.com/fonts/vollkorn?subsets=latin

 

I have tweaked the CSS code with the correct file path on my FTP, but I can't find where to post it!

 

In Prestashop versions up to 1.6, you could find the relevant line "https://fonts.googleapis.com/css?family=Vollkorn:regular" in the header.tpl file or in the global.css file, just like suggested here in this topic https://www.prestashop.com/forums/topic/224416-https-ssl-insecure-contents/

 

In Prestashop 1.7, unfortunately, the header.tpl file doesn't show any mention of this font and there is no global.css file anymore. I have tried looking into every css and tpl file I could find, both in the classic theme (which I'm not using at the moment) and also in the custom theme I'm using (Panda).

 

Do you guys know where to fix this?

 

This CSS-delivery problem highlighted by Google PageSpeed Insights if corrected can give a bonus of up to 5 more points, which I could really need.

 

Thanks for reading and helping out!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...