Today I have seen Google Webmaster Tools to complain about double title tags on my blog. I am using the advanced layout editor for my blog page. As this is a page the title will always be set to avia_set_title_tag(). On a paged blog this causes double title tags.
In my child theme I have now modified the header.php to alter the title by adding the page number starting from page two:
<title>
<?php
if(function_exists('avia_set_title_tag')) {
echo avia_set_title_tag();
if ( $paged >= 2 || $page >= 2 ) {
echo ' - ' . sprintf( '%s', max( $paged, $page ));
}
}
?>
</title>
This could be a good feature to be implemented in a future release of Enfold.
Regards
Michael
Hey!
Thanks for sharing the code Michael, we will keep it in mind.
Best regards,
Josue