Tagged: category, description, page, pagination, seo, Tags, title
-
AuthorPosts
-
July 30, 2021 at 10:45 am #1313415
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 );
}August 3, 2021 at 7:51 am #1314078Hey 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,
IsmaelAugust 3, 2021 at 8:25 am #1314084I have not changed the title field, it is the same as you set.
Screenshots:
https://prnt.sc/1ilt553
https://prnt.sc/1iltjrqAugust 6, 2021 at 10:23 am #1314794Hi,
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,
IsmaelAugust 8, 2021 at 5:04 pm #1315124Yes thank you. Everything works great! You can close the topic…
August 9, 2021 at 5:01 am #1315200 -
AuthorPosts
- The topic ‘Unique title and description on pagination pages!’ is closed to new replies.
