Tagged: category, description, page, pagination, seo, Tags, title
-
AuthorPosts
-
June 23, 2021 at 9:46 am #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/June 25, 2021 at 1:21 pm #1307432Hey 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,
IsmaelJune 25, 2021 at 1:52 pm #1307443I understand you, but Yandex swears and categorically asks to make the titles and descriptions on the pagination pages Unique …
Screenshot: https://prnt.sc/16q3qmf
June 28, 2021 at 8:42 am #1307677Hi,
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,
IsmaelJune 28, 2021 at 10:59 am #1307716A 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
June 29, 2021 at 9:02 am #1307881Hi,
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,
IsmaelJune 29, 2021 at 9:38 pm #1308003Thank you. Sent you a temporary entry…
July 2, 2021 at 4:38 am #1308442Hi,
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,
IsmaelJuly 2, 2021 at 9:34 am #1308472Yes of course. If this helps you find the reason … Thanks
July 5, 2021 at 8:51 am #1308722Hi,
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,
IsmaelJuly 5, 2021 at 12:50 pm #1308770The 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 );
}July 7, 2021 at 6:05 am #1309023Hi,
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,
IsmaelJuly 7, 2021 at 8:05 am #1309047On your advice, I tried to do it myself, it didn’t work …
Temporary login provided by:July 8, 2021 at 9:09 am #1309213Hi,
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,
IsmaelJuly 8, 2021 at 12:16 pm #1309247Yes, everything works. Thank you for your support and help in this matter!
July 8, 2021 at 12:28 pm #1309249I 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” ((
July 9, 2021 at 11:18 am #1309359Now everything seems to be working well. I will watch for a few days, and if I write anything. Thank you
July 12, 2021 at 4:06 am #1309641Hi,
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,
IsmaelJuly 13, 2021 at 8:30 am #1309890Thank you. I understood you…
July 13, 2021 at 5:24 pm #1310004Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonJuly 14, 2021 at 7:48 am #1310070No thanks. You can close
July 17, 2021 at 4:36 pm #1310502Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Unique title and description on pagination pages!’ is closed to new replies.