• Hi,

    I’m using the WooCommerce Subscription extension and I’m trying to remove the “From” text from the variable subscription product pages. I found another thread with another person asking for similar (see below) – however this doesn’t include the variable subscription price filter. Does anyone know if this is possible and if so how’d I do this please?

    /*WooCommerce – remove “From” text on product pricing */
    add_filter(‘woocommerce_variable_price_html’,’custom_from’,10);
    add_filter(‘woocommerce_grouped_price_html’,’custom_from’,10);
    add_filter(‘woocommerce_variable_sale_price_html’,’custom_from’,10);

    function custom_from($price){
    $new_from = “Deposit”;
    $price = str_replace();
    return $price;
    }

    Thanks in advance
    Paul

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter paulmoreton

    (@paulmoreton)

    I’ve been adding the above into the functions.php file within my Themes directory. Do I actually need to create an override.css of sorts. Basically recreate the WooCommerce folder structure in relation to the woocommerce.css, within my Themes directory. Then amend that to prevent it being overwritten when I perform the next update?

    If it’s likely to cause problems by removing this text. Is there any easy way to change it?

    Any help anyone can offer would be gratefully appreciated.

    Kind regards
    Paul

    Thread Starter paulmoreton

    (@paulmoreton)

    I have now resolved this issue with the help of @wpkbdotcom – These guys were awesome. Replied to a message I sent on Twitter and helped me work through the issue for free 😀

    To remove the “From” text from the WooCommerce main product and variable subscription pages – simply add the following to your custom css.

    .from { display:none;}

    WPKB can also be found here – https://www.wpkb.com/

    Kind regards
    Paul

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove "From" text from variable subscription product pages’ is closed to new replies.