1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Divi - woocommerce - disable variable price

Discussion in 'Free Divi Community Forum' started by Lauwrens, Mar 30, 2020.

  1. Lauwrens

    Lauwrens Member

    Hello,

    I've found a plugin that replaces that variable price into the chosen price.

    It's still showing me the chosen price, is there a way to disable this number?

    I've attached a photo, I have circled the number I want to remove in red.

    Thanks you guys are the best

    kind regards,
    Lauwrens
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Child Theme - Tons of premade layouts & section designs + functionalities for your Divi site:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
  3. Lauwrens

    Lauwrens Member

    Hey!

    Thanks for the response.

    This works but the text "from" is still visible in blue.

    I've found a way to remove it but I'm not sure if it is the most effective way.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade logo carousel design for your Divi site without using any plugins:View Demo
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
  5. Lauwrens

    Lauwrens Member

    Hey,

    Thanks for the quick response

    this code does not seem to be responding to the issue.

    Do I just paste the code below the first code you wrote?

    Or should I add it?
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade rolling text design for your Divi site without using any plugins:View Demo
  6. Lauwrens

    Lauwrens Member

    The blue text "from"only appears when the "choose an option" is there.

    I can go into the php file and use the code

    add_filter( 'woocommerce_dropdown_variation_attribute_options_html', 'filter_dropdown_option_html', 12, 2 );

    function filter_dropdown_option_html( $html, $args ) {

    $show_option_none_text = $args['show_option_none'] ? $args['show_option_none'] : __( 'Choose an option', 'woocommerce' );

    $show_option_none_html = '<option value="">' . esc_html( $show_option_none_text ) . '</option>';


    $html = str_replace($show_option_none_html, '', $html);


    return $html;

    }


    This will disable the choose option however, I need the choose an option button...
     

    Attached Files:

  7. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Divi.Help Layout AI Generator - Try the power of AI to generate a custom Divi layout for you:Try Now