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

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

Hi Olga,

I basically just managed changing these links for Empty Cart as well as not empty one. I changed this line: <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 this line

<a class="return-shop" href="<strong>https://mywebsite.com</strong>"><i class="et-icon et-<?php echo (is_rtl()) ? 'right' : 'left'; ?>-arrow"></i><?php esc_html_e('Return to services', 'xstore') ?></a>

and it worked!

I just wanted to ask now – I made this change from WordPress Theme Editor in “XStore” and not in “XStore Child”, because XStore Child doesnt have any other files than functions.php and style.css. Is it a right place to change? Will update updating the XStore theme the changes stay? Please advise

Thank you

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.