Quote:
Originally Posted by beansbaxter
Thanks for the feedback. I've been working in the Developer Console Log and have worked through all the errors, except for one...
I see where vBSEO is adding the <base href...> tag, however when I remove it, then the forum's CSS and Style doesn't load... not sure if there is a workaround...
This the last issue I need to resolve to validate AMP.
|
Open vbseo\includes\functions_vbseo.php, find
Code:
$durl = 'http://'.$_SERVER['HTTP_HOST'];
right below this line there is a line starting with $newtext.
Replace:
Code:
$newtext = preg_replace('#<head>#i', "$0\n".'<base href="'.$durl.(defined('VBSEO_BASE_URL')?VBSEO_BASE_URL:'').'/" /><!--[if IE]></base><![endif]-->', $newtext, 1);
width:
Code:
if(THIS_SCRIPT != 'amp')
{$newtext = preg_replace('#<head>#i', "$0\n".'<base href="'.$durl.(defined('VBSEO_BASE_URL')?VBSEO_BASE_URL:'').'/" /><!--[if IE]></base><![endif]-->', $newtext, 1);}