Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    Please add this code `.art-postcontent ul>li, .art-post ul>li, .art-textblock ul>li {
    overflow-x: visible;
    overflow-y: unset;
    }` .

    Hope this helps 🙂

    Thread Starter flyingpig18

    (@flyingpig18)

    Hello

    One more question, I want to display the “add to cart” with the following Chinese words
    “加入購物車”
    I don’t need the hover effect

    What should I do, which css tag should I modified.

    Thanks
    Nesta

    You are better making sure you are following the translation of it. Read this article and see if it helps you.

    Thread Starter flyingpig18

    (@flyingpig18)

    Thanks for the suggestion, but it seems that I have to pay if I use the WPML。

    I am Chinese, so I know what to do with the Chinese words.

    I just want to convert the simple words “add to cart” to “加入購物車”

    Just tell me which css setting is related to it is fine

    Thanks

    You wouldn’t use CSS for this. You would use a hook

    For Single Product Page

    add_filter('woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text');
     
    function woo_custom_cart_button_text() {
    return __('加入購物車', 'woocommerce');
    }

    For Category Pages

    add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' );
     
    function woo_archive_custom_cart_button_text() {
         global $product;       
        if ( has_term( 'category', 'product_cat', $product->ID ) ) {           
    return '加入購物車';
    } else {
    return '加入購物車';
        }
    }
    • This reply was modified 6 years, 11 months ago by Stef.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove horizontal scrollbar’ is closed to new replies.