Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • 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,

    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

    Avatar: noscible
    noscible
    Participant
    January 6, 2021 at 10:09

    Hi, thank you for the reply.

    1. Yes, I use the child theme. I activated it according to as suggest during the theme setup

    Any chance you can help with indicating where I change the code or it’s the paid service (you meant above)?

  • Viewing 3 results - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.