Modernizr and League News

Premium sports magazine Joomla template with clean, easy to customize and unique design.
GK User
Mon Dec 09, 2013 10:55 pm
Hi there. :)
Can anyone tell me how I should configure Modernizr to be used with League News?

From: http://modernizr.com/docs/ they say:
Drop the script tags in the <head> of your HTML. For best performance, you should have them follow after your stylesheet references. The reason we recommend placing Modernizr in the head is two-fold: the HTML5 Shiv (that enables HTML5 elements in IE) must execute before the <body>, and if you’re using any of the CSS classes that Modernizr adds, you’ll want to prevent a FOUC.

If you don't support IE8 and don't need to worry about FOUC, feel free to include modernizr.js whereever.

But I really don't know in which file I should do that. Can anyone help?

Thank you. :)
User avatar
Fresh Boarder

GK User
Mon Dec 09, 2013 11:41 pm
Hi.
Read this: http://forum.joomla.org/viewtopic.php?f ... w=previous

But I really don't know in which file I should do that.

In this file : templates/gk_league_news/layouts/default.php -- at the top.
User avatar
Platinum Boarder

GK User
Mon Dec 09, 2013 11:43 pm
p.s.
Second solution, use Custom Code plugin and do not hack template --> http://www.gavick.com/documentation/joo ... ted-pages/
User avatar
Platinum Boarder

GK User
Tue Dec 10, 2013 6:26 pm
Thank you very much Pawel!
Your replies helped me a lot! Now Modernizr is working with the Gavick template and Joomla!

Thank you once again and have a great day!
User avatar
Fresh Boarder


cron