Viewing 5 replies - 1 through 5 (of 5 total)
  • I was looking at this but can’t get it to work correctly.

    What exactly did you do?

    And what happened? Any error messages you can share?

    Thread Starter Rico

    (@nascas)

    Hi,

    Thanks for your reply.
    I copied this to functions.php:
    add_action( ‘init’, function() {
    $GLOBALS[‘wp_rewrite’]->pagination_base = ‘whatever’;
    });

    But it didn’t help. The name (URL) stayed unchagned. I refreshed the site and saved permalinks settings as well.

    Thread Starter Rico

    (@nascas)

    Ah, dumb me. I was adding this to style.css. ??
    But anyway, when added to functions.php it does change the name – but then I’m getting a 404 error.

    // after adding this code, flush the rewrite rules by going to settings->permalinks and saving

    Did you do that?

    Thread Starter Rico

    (@nascas)

    Yes, I did.
    But strange thing.
    It worked when categories were shown.
    If I went to domain.com/shop/ – then it didn’t and returned 404 error.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Translate /page/ in url WC’ is closed to new replies.