How to hide the first payment icon + move the 2nd one up?

Zakch93

Elite Member
Joined
Mar 7, 2020
Messages
2,309
Reaction score
856
1st Paypal option needs to go, and 2nd option with the 2 buttons needs to take its place.

Using Generatepress theme.

Can be done with some CSS?
Screenshot (322).png
 
Update:

On my old hosting both problems are fixed, seemingly with this snippet:

Code:
add_filter('woocommerce_paypal_payments_single_product_renderer_hook', function() {
    return 'woocommerce_before_add_to_cart_quantity';
});

add_action( 'woocommerce_single_product_summary', 'customizing_add_cart', 1 );
function customizing_add_cart() {

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 15 );
}

But after transferring site to new hosting, issue arise even with snippet active in WPcode plugin.
 
Problem solved by disabling one Paypal gateway in Woocommerce payment settings
 
Back
Top