Replace FAB add to cart icon

You can replace the FAB add to cart icon by using the snippet below. Just replace the Font Awesome icon type to the one you desire.

Code Example

/**
 * Replace FAB add to cart icon.
 *
 * @param string $fab_button FAB.
 */
add_filter( 'conversions_fab', 'conversions_fab_add_to_cart_icon' );
function conversions_fab_add_to_cart_icon( $fab_button ) {

    // Replace add to cart icon with a different icon.
    $fab_button = str_replace( 'fas fa-cart-plus', 'fas fa-cart-arrow-down', $fab_button );

    return $fab_button;
}

Get started today!

Conversions is on mission to improve the future of web. Are you ready to join us?

Download