Support » Plugin: WooCommerce » How to change Page number url?

  • Resolved K1

    (@hofewo)


    So when your Shop catalog page is full of products, and you go to the next page, the URL would look something like this:

    myshop.url/shop/category/page/2

    This will let WordPress/Woocommerce know that you are on page 2 of the Shop catalog. I would like to change ‘page’ to ‘pagina’ (Dutch translation) in the URL.

    myshop.url/shop/category/pagina/2

    How would I do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • superkot

    (@superkot)

    Add this code to your theme functions.php:

    function change_page_slug() {
    global $wp_rewrite;
    $wp_rewrite -> pagination_base = 'pagina';
    }
    add_action('init', 'change_page_slug');

    Then go to your Settings -> Permalinks and do “Save changes” without changing anything.

    K1

    (@hofewo)

    Thank you very much, this worked!

    Now in the (Yoast) breadcrumbs, the title still says ‘Page 2’. Is there any way I can set this to ‘Pagina 2’ also?

    superkot

    (@superkot)

    Do you use a translation plugin, like Loco Translate? If that text is within a translatable set, you could change it this way. Either that, or digging into Yoast code, or asking Yoast support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change Page number url?’ is closed to new replies.