Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #1307100

    Tell me kind people, how can you uniqueize title and description on pagination pages? The search engine swears, says you have the same titles and descriptions.

    I would like the following to be added to the title and description from the 2nd page: – Page 2, Page 3, Page 4 and so on …

    For example title:
    1. Fishing for spinning
    2. Fishing for spinning – Page 2
    3. Fishing for spinning – Page 3
    4. And so on…

    How to make the page numbers automatically appended to the title?
    site: https://www.ulovanet.ru/

    #1307432

    Hey Konstantin,

    Thank you for the inquiry.

    The theme automatically adds a “nofollow, noindex” meta tag to paginated pages to prevent content duplication, so you do not have to adjust the pagination title.

    Best regards,
    Ismael

    #1307443

    I understand you, but Yandex swears and categorically asks to make the titles and descriptions on the pagination pages Unique …

    Screenshot: https://prnt.sc/16q3qmf

    #1307677

    Hi,

    Are you referring to the main blog page? Did you set the blog page in the Enfold > Theme Options panel? The theme should automatically append the current page number to the title when the page is paginated.

    Screenshot: https://postimg.cc/TLxNH33N/48a89310

    Please provide a direct link to the page with the pagination so that we could check it.

    Best regards,
    Ismael

    #1307716

    A blog page is set in the settings. When you go to 2,3,4 pages – The title does not change (

    Paginated page: https://www.ulovanet.ru/blog/

    Screenshot: https://prnt.sc/1792m5l

    #1307881

    Hi,

    Thank you for the info.

    Would you mind posting the login details in the private field so that we could check the site properly? Please make sure that the Appearance > Editor panel is accessible.

    Best regards,
    Ismael

    #1308003

    Thank you. Sent you a temporary entry…

    #1308442

    Hi,

    We tried to modify the avf_add_page_number_to_title function but the title is not changing. Can we deactivate the plugins temporarily?

    And you should also remove the static title in the SEO title field of the blog page and use variables instead.

    // https://www.wearewibble.com/yoast-seo-how-to-change-your-wordpress-meta-title-description/

    Best regards,
    Ismael

    #1308472

    Yes of course. If this helps you find the reason … Thanks

    #1308722

    Hi,

    Have you tried removing the SEO title field value of the blog page? The value of this field overrides the default title. We tried to change it but the login token above is already expired.

    Best regards,
    Ismael

    #1308770

    The temporary entrance must still work for 1 day.

    > I tried to remove the SEO title completely, nothing changes.
    > In Enfold settings, if you remove a blog page, the title changes. But page numbers are still not added to Title and Description, as in headings, tags …

    This code works great, but except for the “Blog” page.

    if ( ! function_exists( ‘avf_add_page_number_to_title’ ) )
    {
    function avf_add_page_number_to_title( $title )
    {
    global $page;
    $paged = get_query_var( ‘paged’ ) ? get_query_var( ‘paged’ ) : 1;
    $paged = $paged ? $paged : get_query_var( ‘avia-element-paging’ );
    ! empty ( $page ) && 1 < $page && $paged = $page;

    $paged > 1 && $title .= ‘ – ‘ . sprintf( __( ‘Page %s’ ), $paged );

    return $title;
    }

    add_filter( ‘wpseo_metadesc’, ‘avf_add_page_number_to_title’, 100, 1 );
    add_filter( ‘wpseo_title’, ‘avf_add_page_number_to_title’, 100, 1 );
    add_filter( ‘avf_title_tag’, ‘avf_add_page_number_to_title’, 100, 1 );
    }

    #1309023

    Hi,

    The login token is no longer working. Please generate another so that we can access the site again. Removing the value of the title field should fix the issue because when the field is empty, the function avf_add_page_number_to_title will not be overridden.

    Best regards,
    Ismael

    #1309047

    On your advice, I tried to do it myself, it didn’t work …
    Temporary login provided by:

    #1309213

    Hi,

    Thank you for the new login token.

    We removed the custom SEO title field value and edited the avf_add_page_number_to_title function a bit. The page number is now included in the blog page title. This is the modified function.

    /*Добавляет к Title и Description на страницах пагинации номера страниц "Страница - 2,3,4..."*/
    if ( ! function_exists( 'avf_add_page_number_to_title' ) )
    {
        function avf_add_page_number_to_title( $title )
        {
            global $page;
            $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
            ! empty ( $page ) && 1 < $page && $paged = $page;
    		isset($_GET['avia-element-paging']) && $paged = $_GET['avia-element-paging'];
            $paged > 1 && $title .= sprintf( __( 'Page %s' ), $paged );
    
            return $title;
        }
    
        add_filter( 'wpseo_metadesc', 'avf_add_page_number_to_title', 100, 1 );
        add_filter( 'wpseo_title', 'avf_add_page_number_to_title', 100, 1 );
    	add_filter( 'avf_title_tag', 'avf_add_page_number_to_title', 100, 1 );
    }
    

    Best regards,
    Ismael

    #1309247

    Yes, everything works. Thank you for your support and help in this matter!

    #1309249

    I was just overjoyed when I discovered a new problem.

    As I understand it, you have turned on the setting: “Advanced Layout Editor”. For a Blog page, this works great. But all the other headings and tags immediately break down.

    Category pages get incredibly large, as all articles are displayed in full, and not just a preview. The grid layout doesn’t work either.

    Thus, I cannot set the blog layout to “Advanced style” ((

    #1309359

    Now everything seems to be working well. I will watch for a few days, and if I write anything. Thank you

    #1309641

    Hi,

    We can use the avf_blog_style filter to adjust the style of the blog on archive or category pages. Please check the following thread for usage example.

    // https://kriesi.at/support/topic/blog-page-post-category-and-date-not-displaying/#post-1309089

    Best regards,
    Ismael

    #1309890

    Thank you. I understood you…

    #1310004

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1310070

    No thanks. You can close

    #1310502

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘Unique title and description on pagination pages!’ is closed to new replies.