Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1176365
    outfitarena
    Participant

    Hi X theme team,

    CAn you please help with to remove the cart icon and rename the “read more” to “see more” and align it to the center of the button?

    Thanks a lot in advance

    #1176367
    outfitarena
    Participant
    This reply has been marked as private.
    #1176513
    Christian
    Moderator

    Hey there,

    I see that you’re not using a child theme. Changing the “Read more” text would require adding code to functions.php so if you put it in the parent X’s file, it will be lost when updating. Please backup everything especially exporting the Customizer settings then install the child theme. See https://community.theme.co/kb/how-to-setup-child-themes/.

    Once done, please add the code below in your child theme’s functions.php

    function change_text( $translated_text, $text, $domain ) {
      switch ( $translated_text ) {
        case 'Read more' :
          $translated_text = __( 'See more', 'woocommerce' );
          break;
      }
      return $translated_text;
    }
    add_filter( 'gettext', 'change_text', 20, 3 );

    For the icon, please add the code below in your Appearance > Customize > Custom > Global CSS

    .woocommerce .button.product_type_simple:before, .woocommerce .button.single_add_to_cart_button:before {
        display: none;
    }

    Hope that helps. 🙂

    #1176655
    outfitarena
    Participant

    Thanks Christian but I still have few questions. I installed the child theme and now
    1. Where do I find functions.php. Should I go to my hosting page’s file manager?
    2. For the icon, I added the code to Global css, but nothing happened.

    #1176672
    outfitarena
    Participant

    Ok, I found functions.php, added the code and everything is working but still can’t figure out the icon issue. WIth global css it doesn’t work

    #1176824
    Rupok
    Member

    Hi there,

    I can’t see the code on your site and the code is correct :

    .woocommerce .button.product_type_simple::before, .woocommerce .button.single_add_to_cart_button::before {
      display: none;
    }

    If you added this to Customzier then make sure your other codes are properly closed.

    Cheers!

    #1176853
    outfitarena
    Participant

    Right, now it works perfect. Thanks Rupok!!!

    Cheers

    #1176929
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1176365 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>