“Return to shop” change default URL

This topic has 5 replies, 2 voices, and was last updated 4 years ago ago by CADC-

  • Avatar: CADC-
    CADC-
    Participant
    May 8, 2021 at 12:23

    Hello,

    I am trying to change the link of the “Return to shop” button. Right now it redirects to https://invatam-engleza.ro/index.php/shop/ but I want to make it redirect to https://invatam-engleza.ro

    I tried adding a piece of code within the functions.php of my child theme but it didn’t work.

    Any suggestions?

    4 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 8, 2021 at 12:46

    Hello,

    “Return to Shop” is written in the files wp-content/themes/xstore/woocommerce/cart/cart-empty.php and xstore/woocommerce/cart/cart.php , so you can rewrite these files via the child theme.

    Regards

    Avatar: CADC-
    CADC-
    Participant
    May 8, 2021 at 13:14

    Thanks for pointing that out. While I am not a developer I know my way around things. So I changed get_permalink to get_home_url and now it redirects to the homepage.

    Also, I don’t want to open another topic but I did see this error in the console:

    GET https://invatam-engleza.ro/wp-content/uploads/elementor/css/global.css net::ERR_ABORTED 404

    If needed I can open another topic for this, let me know.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 8, 2021 at 15:16

    Try to regenerate the CSS. Go to Elementor > Tools. Under the General Tab > Regenerate CSS, click Regenerate Files.
    If this doesn’t help, contact the support of the Elementor plugin.

    Regards

    Avatar: CADC-
    CADC-
    Participant
    May 8, 2021 at 19:35

    That solved the issue. Thanks!

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘“Return to shop” change default URL’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.