Tagged: Blog, description, load more, pagination, title
-
AuthorPosts
-
September 18, 2020 at 9:26 pm #1246939
Hello!
I believe that Yoast SEO has some conflict with my Enfold theme, because it is not adding page number to home blog pagination title and description. I leave a link below to check. According to my support, pagination is OK with Rel = “Next” and Rel = “Prev”; canonical is on the right page, but Tilte and Description has no change.
September 22, 2020 at 1:02 pm #1247605Hey maria_96,
Thank you for the inquiry.
The theme has the av_theme_slug_render_title function that is attached to the wp_head action hook and renders the title tag. If you would like to disable it, add this code in the functions.php file.
remove_action( 'wp_head', 'av_theme_slug_render_title' );
Best regards,
IsmaelSeptember 24, 2020 at 4:57 pm #1248231Hello, the code you gave me removes pagination from all pages and I only need to resolve the issue of the title and description of the pagination, would there be another code for that?
September 28, 2020 at 5:35 am #1248913Hi,
Thank you for the update.
The code above should have removed only the title tag in the head, not the pagination. Where can we check the issue?
Best regards,
IsmaelOctober 1, 2020 at 3:50 pm #1249895Hello Ismael,
I sent a print showing that I am on page 3 of the blog, however, my title does not change to the information “Retenção de Clientes e Higienização de Dados | 03 | Blog TargetData” it remains as if we were on the first page.
October 5, 2020 at 12:24 pm #1250574Hi,
Thank you for the info.
Where did you enable this option? Is this a Yoast feature?
If we are not mistaken, Yoast does not add the current page number to the title by default nor does the theme, but we could use this filter in the functions.php file to do so.
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 ); }
Best regards,
IsmaelOctober 21, 2020 at 8:59 pm #1254775Hii,
I tried the code after updating the theme and it didn’t work, besides, my canonical was incorrect. Before the canonical was /blog/page/2/ and now the canonical is just /blog/.
October 24, 2020 at 5:23 am #1255369Hi,
Thank you for the update.
We might have to access the file server in order to test this further. Please post the FTP details in the private field and provide the exact directory of the WordPress installation.
Best regards,
IsmaelOctober 27, 2020 at 7:02 pm #1256169Hi,
I did as requested, however, I didn’t understand the exact directory of the WordPress installation part, what would it be?
November 2, 2020 at 2:51 am #1257486Hi,
The login info above is incorrect. Please check the user and password info carefully. For additional assistance, please try to contact the plugin developers.
Thank you for your patience.
Best regards,
IsmaelNovember 3, 2020 at 3:38 pm #1258032Hey,
I corrected the password, can you try again?
Thanks
November 9, 2020 at 1:46 am #1259145Hi,
This is still not working — login info is incorrect. Please try to contact the plugin developers because this is definitely not an issue with the theme. As we mentioned above, the theme calls in the av_theme_slug_render_title and the avia_set_title_tag functions to set the title of the page using the wp_title function and nothing else, so disabling those functions should allow the plugin to render the title as it deems fit.
Thank you for your understanding.
Best regards,
IsmaelJune 25, 2021 at 1:43 pm #1307438Thanks for this code. For me it works great and adds page numbers to Title and Description.
This code works for categories and tags, but it doesn’t work for the Blog page. Help me please…
url: https://www.ulovanet.ru/blog/?avia-element-paging=2#home-blog
June 28, 2021 at 9:19 am #1307689Hi,
@Konstantin: We replied in the following thread. Please continue there.
// https://kriesi.at/support/topic/unique-title-and-description-on-pagination-pages/
Best regards,
Ismael -
AuthorPosts
- The topic ‘Yoast not adding page number to home pagination title’ is closed to new replies.