Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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.

    #1247605

    Hey 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,
    Ismael

    #1248231

    Hello, 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?

    #1248913

    Hi,

    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,
    Ismael

    #1249895

    Hello 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.

    #1250574

    Hi,

    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,
    Ismael

    #1254775

    Hii,

    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/.

    #1255369

    Hi,

    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,
    Ismael

    #1256169

    Hi,

    I did as requested, however, I didn’t understand the exact directory of the WordPress installation part, what would it be?

    #1257486

    Hi,

    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,
    Ismael

    #1258032

    Hey,

    I corrected the password, can you try again?

    Thanks

    #1259145

    Hi,

    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,
    Ismael

    #1307438

    Thanks 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

    #1307689

    Hi,

    @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

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Yoast not adding page number to home pagination title’ is closed to new replies.