Archived topic
validation errors GP hooks wp_footer
3 replies · Started by Chad Biggs on March 9, 2016
Hello, I am spending time trying to get my site to load faster and validate. When I put my links to my scripts and css in the GP hook wp_head it slows the site down but when I put the scripts and css in the GP hook wp_footer, I get validation errors. Where is the best place to put these links so I can have a site that is faster and validates?
http://cboysweb.com/
https://validator.w3.org/
Thank you, -Chad
What are the validation errors you're getting?
1)Error: Attribute integrity not allowed on element link at this point.
From line 293, column 2; to line 293, column 291
tion -->↩ <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"rel="styles…9mPG8MT/3UCDzwR9gPeyFNMCtInsol++5m3bk2bXWKdZjvybmohrAsn3Ua5x8gfLnbE1YkOg==" crossorigin="anonymous">↩↩<!--
2)Error: Element link is missing required attribute property.
From line 293, column 2; to line 293, column 291
tion -->↩ <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="styles…9mPG8MT/3UCDzwR9gPeyFNMCtInsol++5m3bk2bXWKdZjvybmohrAsn3Ua5x8gfLnbE1YkOg==" crossorigin="anonymous">↩↩<!--
3)Error: Attribute integrity not allowed on element link at this point.
From line 296, column 1; to line 296, column 214
is ok -->↩<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min…y="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">↩↩<!--
4)Error: Element link is missing required attribute property.
From line 296, column 1; to line 296, column 214
is ok -->↩<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min…y="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">↩↩<!--
All CSS files should be added to the wp_head hook.
That should fix it.
