robertocodo
Forum Replies Created
-
@Anidog search “Hampton” on Themeforest, you can see the theme that I get approvation. If you inspect the code you can see what I described above, but if you check the online demo with w3c validator you get an error (How you said before).
However, you are not responsible for external plugin, then you have to keep the “PageBuilder” external, including it by TGM.@anydog You’re right, but in development stage usually you load the page in the browser, save it, then upload to w3c validator. This way works fine. I’m a Themeforest author and I get a theme approved this way.
If anyone is still interested, I made a jQuery workaround:
1) put this tag in your header.php
<style type="text/css" media="all" id="dummy"> </style>just before the</head>closing tag2) put this line in your jQuery theme script (inside in a $( document ).ready( function() ):
$('#dummy').replaceWith($('#siteorigin-panels-grids-wp_footer'));This way, after the document will be ready, jQuery will put the entire “siteorigin-panels-grids-wp_footer” in the <head>. The validator will quite and the styles will be applied like before.