New Landing How can we help? Themeforest Theme Support Dante How to translate phrase only to apply on one page?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #120241
    mhote
    Member
    Post count: 394

    Hi, trying to remove Free! on woocommerce, BUT only on one specific page (where I’m using inline add to cart button. I’m using functions to translate things. Is there a way in Dante to do this but apply a rule only to one page? Thanks

    function my_text_strings( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Unit Price' :$translated_text = __( 'Price', 'woocommerce' );break;
            case 'Read More' :$translated_text = __( 'Learn More', 'woocommerce' );break;
    
    #120409
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You can hide the label with css, please provide me with the link to the page

    – Kyle

    #121290
    mhote
    Member
    Post count: 394

    Worked around this, thanks Kyle.

    #121321
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register