Home / Forums / WoodMart support forum / #288428 URL paignation on last Woodmart update About Information
Home › Forums › WoodMart support forum › #288428 URL paignation on last Woodmart update About Information
#288428 URL paignation on last Woodmart update About Information
- This topic has 7 replies, 2 voices, and was last updated 1 year, 6 months ago by
Artem Temos.
-
AuthorPosts
-
December 22, 2024 at 9:58 am #624500
EcommerceParticipanthi,
#288428 It seems the topic was resolved by you in 2021. Is the solution method still the same? Is it possible to configure it in the theme settings without adding code?Kod:
add_filter( ‘woodmart_load_more_button_page_url’, ‘__return_false’ );December 23, 2024 at 11:58 am #624668Hello,
You can use an option for this in Theme Settings -> Product archive -> Products grid ->
Keep the page number in the URL.Kind Regards
January 5, 2025 at 8:15 pm #627457
EcommerceParticipantHello,
We have communicated the ongoing pagination and related SEO issues in a private section to prevent our website’s URL from being publicly visible. Please ensure to provide support for such matters in the same manner.
January 6, 2025 at 11:04 am #627552Hello,
Pagination functionality is related to the WooCommerce plugin and our theme doesn’t influence it. Could you please check all these points with the default theme?
Kind Regards
January 6, 2025 at 10:11 pm #627800
EcommerceParticipantThe feature to list more products by using “load more” on category pages is available. In the theme settings, the canonical URLs for page2, page3, etc., can be removed from the URL structure. However, the canonical structure is not completely eliminated, and when clicking on URLs like page2, they are still accessible. How can we solve the issue of crawling budget and SEO duplicate problems by completely removing these canonical URLs in WooCommerce?
In summary: What is the way to completely remove the pagination structure on category pages and eliminate the page2, page3 URLs?
January 7, 2025 at 10:53 am #627882Sorry, but we don’t have instructions for this. You need to refer to the WooCommerce documentation or contact its support since it is not related to the theme.
January 8, 2025 at 7:53 pm #628409
EcommerceParticipantChat gpt provides many codes to disable pagination on category pages, but this one “load more save” button does not work. Can you help me with this?
Sample Code1:
// Block Access to Page2, Page3 URLs
add_action(‘template_redirect’, ‘block_pagination_urls’);
function block_pagination_urls() {
if ( is_shop() || is_product_category() ) {
// WooCommerce’de page2, page3 gibi URL’leri kontrol et
if ( get_query_var(‘paged’) > 1 ) {
wp_redirect( get_permalink( wc_get_page_id( ‘shop’ ) ), 301 );
exit;
}
}
}Sample Code2:
// Block /page 2, /page 3 URLs in WooCommerce
add_action(‘template_redirect’, ‘disable_pagination_urls_compatible_with_loadmore’);
function disable_pagination_urls_compatible_with_loadmore() {
if ( is_shop() || is_product_category() ) {
// AJAX yükleme işlemlerini kontrol et
if ( isset($_GET[‘load_more’]) || defined(‘DOING_AJAX’) && DOING_AJAX ) {
return; // Continue “Load More” operations without affecting them
}
// Check normal pagination
if ( get_query_var(‘paged’) > 1 ) {
wp_redirect( get_permalink( wc_get_page_id( ‘shop’ ) ), 301 );
exit;
}
}
}January 9, 2025 at 10:15 am #628473Hello,
“Load more” button works in conjunction with WooCommerce pagination. If you disable the pagination, Load more will be disabled too.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register