This topic has 10 replies, 3 voices, and was last updated 1 months, 3 weeks ago ago by Andrew Mitchell
Hello,
Category page is having a pagination issue. The pagination of category page is not correct.
It is showing like this:
page/1/
page/2/
page/3/?
page/4/?
Why page2 and 3 is showing a question mark?
Also the page 2, 3 and 4 cant be ranked by google unlike other websites. If you go to check page nr 2,3 or 4 into google cache, Google cache will only show the page 1.
For urls, see private area.
Why this issue is causing?
Regards,
Rana
Hello, Rana,
Thank you for reaching out to us with your concerns regarding the pagination issues on your category page.
Please test how it works with the Storefront theme and let us know the results of this test.
Best Regards,
8Theme’s Team
Hello,
1-To find those all pages again in Google cache will not take 1 or 2 days, dear. If i switch this to Storefront theme to test, it will take a month or more to google to crawl all those pages again.
All the pages of that category can be indexed and crawled by google search console as i tested one by one in GSC. But yet page/2/, page/2/, page/3/, page/4/ can’t be found in google cache. Please read my last message again. I explained my issue very clearly in my last message.
2- How can i remove h1 tag from the breadcrumbs which is very bad practice according to the Google. I want to use the method which 90% percent websites are using. So please can you guide me how to setup the category titel as h1 tag? Like all other websites, i need this title as H1 tag, see screenshot https://prnt.sc/MOl4fQ1LzocW
** I try to understand, how that can be justified when a theme is showing page 2 as h1 tag on all the category pages. See screenshot https://prnt.sc/_E3K9TRcG-mD
Didn’t your whole team find any solution to this very basic issue over the past few years?
Regards,
Hello, Rana,
I hope this message finds you well. We have reviewed the issues you are experiencing with pagination and H1 tags on your website and would like to offer some insights and recommendations to address these concerns effectively.
1) Pagination Issues:
We understand that the URLs for your paginated pages are appearing as page/1/, page/2/, page/3/, etc., and that these pages are not being properly indexed by Google. This could be attributed to several factors related to how your WordPress or WooCommerce site is configured for pagination and SEO:
– Canonical Tags: If the canonical URL for all paginated pages is set to point to page/1/, Google may perceive pages 2, 3, and 4 as duplicates of page 1 and may not index them separately. This issue often arises from a configuration setting in your SEO plugin (e.g., Yoast SEO, Rank Math).
– Pagination Settings: There might be incorrect pagination URLs being generated, or they are handled in a manner that confuses search engines. This could stem from improper setup in your theme or the .htaccess file, leading to indexing issues.
– Duplicate Content: If the content on paginated pages is too similar, Google might opt to index only the first page and disregard the subsequent ones. This typically occurs when there is insufficient unique content on the following pages.
However, we suspect that your pagination pages are not being indexed due to the use of Ajax product pagination. In this setup, instead of navigating to a new page, the content of the current page is replaced with that from a paginated page. We recommend disabling the Ajax product pagination by navigating to:
Customizer -> WooCommerce (Shop) -> Shop -> Shop Page Layout -> Pagination type
2) Configuration of H1 Tags:
You can change the H1 tags for both categories and regular pages by accessing the following settings in your Customizer:
– Customizer -> Breadcrumbs -> Title tag
– Customizer -> Breadcrumbs -> Categories title tag
We trust that these adjustments will help improve the SEO performance and user experience of your site. Should you require further assistance or have any questions, please do not hesitate to contact us.
Best Regards,
8Theme’s Team
Thanks for the reply. H1 in breadcrumbs is a bad practice. So I will remove this from breadcrumbs. So we added the below mentioned code into our theme:
// showing category title as h1 tag. So no more breadcurmbs needed as h1
function custom_woocommerce_category_title() {
if (is_product_category()) {
echo ‘
‘;
}
}
add_action(‘woocommerce_before_shop_loop’, ‘custom_woocommerce_category_title’, 5);
function custom_woocommerce_template_single_title() {
echo ‘
‘;
}
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_title’, 5 );
add_action( ‘woocommerce_single_product_summary’, ‘custom_woocommerce_template_single_title’, 5 );
// showing h1 tag in blog posts
function convert_entry_title_to_h1( $title, $id = null ) {
if ( is_single() && ‘post’ == get_post_type( $id ) ) {
// Remove h2 class and add h1 class
$title = str_replace( ‘entry-title’, ‘entry-title entry-title-h1’, $title );
$title = ‘
‘;
}
return $title;
}
add_filter( ‘the_title’, ‘convert_entry_title_to_h1’, 10, 2 );
// add h1 to default SHOP page
function add_h1_tag_to_shop_page() {
if (is_shop()) {
echo ‘
‘;
}
}
add_action(‘woocommerce_before_main_content’, ‘add_h1_tag_to_shop_page’, 10);
Thankfully H1 tags are showing now without breadcrumbs. What is your observation about the above mentioned code?
See private content area for this product url.
2>>> After removing H1 tags from the breadcrumbs, thankfully page 2 is also not showing H1 tag. But its still showing as a title. See screenshot https://prnt.sc/uhX6IbX5J927
Can you please send me a solution for this.
Regards,
Rana
Hello, Rana,
Thank you for reaching out to us.
Regarding the code you have implemented, it appears to function correctly and does not cause any issues. However, we have a query concerning whether you added the code to the parent theme or the child theme. If it was added to the parent theme, please note that it will be overwritten during an update. We kindly ask you to transfer it to the child theme to avoid any disruptions.
Additionally, please provide us with updated access credentials for both the administrative panel and FTP of your site. The credentials previously provided are no longer valid. Having these details will enable us to assist you more efficiently with resolving your issue.
Thank you for your attention to these matters. We look forward to your prompt response.
Best Regards,
8Theme’s Team
Dear Andrew Mitchell,
1-Please log into https://xstore.8theme.com/elementor/shop/
2-Disable the breadcrumbs like this https://prnt.sc/OzKKMdl22hDA
3- Go to the taxonomy page (Color, size etc). If you dont have create one.
** You will not find the h1 tag. With which code you can configure h1 tag om those taxonomy page?
*** Please try to assist me without access to my site as the same issue is occured with the Xstore theme. So better log into your’s for better understanding.
Hello, Rana,
Unfortunately, I do not have the authority to make changes to the demo sites. To proceed with your request, please visit the following link:
https://www.8theme.com/account/#etheme_customization_panel
Alternatively, you may provide us with access credentials to your site, allowing us to assist you further.
Best Regards,
8Theme’s Team
Dear Theme Team,
I explained you that your default theme are having same issue. Please check into your default theme.
Type into product content area 70×140 cm, and than check in view source that how x is replaced with × in xstore theme. You know the issue very wel dear. Please find the solution. See screenshot https://prnt.sc/YG3LD7CpjgqZ
Wating for your reply.
Hello, Rana,
I hope this message finds you well.
I am writing to explain the reasons behind the necessity of certain functions in our system, which are crucial for maintaining compatibility and functionality. These include:
1. wc_format_content: This function is essential for the operation of the “woocommerce_format_content” filter. It is a core part of WooCommerce plugin compatibility and cannot be removed without affecting the overall infrastructure.
2. wp_kses_post: This WordPress function is necessary for the correct display and sanitization of HTML data. Removing this function could lead to significant issues with WordPress itself.
We understand that these constraints might not align with every use case, and we appreciate your understanding of why these elements will not be included in the upcoming updates.
However, you have the option to disable these functions locally. To do this, please edit the following file:
xstore-core/app/controllers/elementor/theme-builder/woocommerce/archive/archive-description.php
You will need to replace the existing code
echo '<div class="term-description">' . wc_format_content( wp_kses_post( $term_description ) ) . '</div>';
with the code provided below
echo '<div class="term-description">' . $term_description . '</div>';
This adjustment should resolve your issue.
If you are unable to make these changes yourself, please send us your FTP and admin panel credentials, and we will make the necessary modifications for you.
Thank you for your understanding and cooperation. Should you have any further questions or require additional assistance, please do not hesitate to contact us.
Best Regards,
8Theme’s Team
You must be logged in to reply to this topic.Log in/Sign up