Reply 267047 to: How to change the default "Return to Shop" Links to Homepage?

Avatar: noscible
noscible
Participant
January 6, 2021 at 16:26

I am sorry for spamming, but my above psot for whatever reason didn’t get posted fully.

What I was writing is that I managed to change the links from the cart*. php files. Basically, what I changed is – for insance in case of empty-cart case:
FROM
<a class="return-shop" href="<?php echo get_permalink(wc_get_page_id('shop')); ?>"><i class="et-icon et-<?php echo (is_rtl()) ? 'right' : 'left'; ?>-arrow"></i><?php esc_html_e('Return to services', 'xstore') ?></a>
TO
<p><a class="btn" href="http://cvchopshop.co.uk/"><span><?php esc_html_e('Return To Shop', 'xstore') ?></span></a></p>

So, it fixed and now the link is corrected.

Though, what I wanted to ask is that – I made this changes in php files under the XStore main theme (not in child one), because XStore Child theme doesn’t have this files. It has only functions and style files.
Is it okay to do so, and the change be saved after I update the theme to latest version?

Thank you
Bests,

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.