Tagged: category, description, page, pagination, seo, Tags, title
Hello.
Again after updating Enfold, the Blog pagination page does not change ….
It turns out that this code again does not work for the Blog page. For headings and tags, works great!
Early open topic: https://kriesi.at/support/topic/unique-title-and-description-on-pagination-pages/
if ( ! function_exists( ‘avf_add_page_number_to_title’ ) )
{
function avf_add_page_number_to_title( $s )
{
global $page;
$paged = get_query_var( ‘paged’ ) ? get_query_var( ‘paged’ ) : 1;
! empty ( $page ) && 1 < $page && $paged = $page;
$paged > 1 && $s .= ‘ – ‘ . sprintf( __( ‘Page %s’ ), $paged );
return $s;
}
add_filter( ‘wpseo_metadesc’, ‘avf_add_page_number_to_title’, 100, 1 );
add_filter( ‘wpseo_title’, ‘avf_add_page_number_to_title’, 100, 1 );
}
Hey Konstantin,
Thank you for the inquiry.
Did you set the SEO title field of the blog page again? Please post the login details in the private field so that we could check it.
// https://kriesi.at/support/topic/unique-title-and-description-on-pagination-pages/#post-1308722
Best regards,
Ismael
I have not changed the title field, it is the same as you set.
Screenshots:
https://prnt.sc/1ilt553
https://prnt.sc/1iltjrq
Hi,
The functions.php file contains the old code. You have to use this one.
// https://kriesi.at/support/topic/unique-title-and-description-on-pagination-pages/#post-1308722
We already added it in the functions.php file. We also removed the SEO title value again. Please note that the SEO title field will override the title that we set, so you should leave it as is.
Best regards,
Ismael
Yes thank you. Everything works great! You can close the topic…