Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #259609

    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:

             if(function_exists('avia_set_title_tag')) {
                 echo avia_set_title_tag();
                 if ( $paged >= 2 || $page >= 2 ) {
                     echo ' - ' . sprintf( '%s', max( $paged, $page ));

    This could be a good feature to be implemented in a future release of Enfold.





    Thanks for sharing the code Michael, we will keep it in mind.

    Best regards,

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Double title tags’ is closed to new replies.