Hi,
On a dynamical product page I want to change the metatags (SEO) with the actual product information.
I've made the following with jQuery but does this change make sense (for SEO) after DOM is ready? The page source is not showing the changed metatags, with Firebug it does.
Is there a way (function) to change this after function get_header(); is started?
Regards, René
On a dynamical product page I want to change the metatags (SEO) with the actual product information.
I've made the following with jQuery but does this change make sense (for SEO) after DOM is ready? The page source is not showing the changed metatags, with Firebug it does.
Code:
$('meta[name=description]').attr('content', '<?php echo $description; ?>');
$('meta[name=keywords]').attr('content', '<?php echo $keywords; ?>');
... or ...
$('meta[name=description]').remove();
$('head').append( '<meta name="description" content="<?php echo $description; ?>">' );
$('meta[name=keywords]').remove();
$('head').append( '<meta name="keywords" content="<?php echo $keywords; ?>">' );
Is there a way (function) to change this after function get_header(); is started?
Regards, René