• Resolved rnmartinez

    (@rnmartinez)


    Hi everyone

    This site used to have the Divi theme, but I have decided to migrate it to the 2023 theme (using a child).

    My biggest issue is that the paypal button is positioned incorrectly; not sure if it is something left over from Divi or some other issue.

    I know that filters may be able to help since this is a “block builder” theme of sorts, but find it odd that a default WP theme would behave this way.

    Any ideas?

    The page I need help with: [log in to see the link]

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

    (@rnmartinez)

    OK I have mainly solved this; just need to add a line break between the add to cart button and the paypal button

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @rnmartinez

    Thank you for reaching out to us, we are here to help. Good to hear that you already got this resolved for yourself. We also encountered this issue already and have a bug open for it. I have linked the bug to this thread, so we will update the bug when it’s been resolved.

    Currently, there is already a function to work around such problems by changing the render hook: https://github.com/woocommerce/woocommerce-paypal-payments/blob/7571a1cea88492e97621241e29df6d56c2f20d25/modules/ppcp-compat/src/CompatModule.php#L351

    But this doesn’t apply when using Divi with a child theme or when using a Block theme. Now, we want to improve the detection of Divi child themes and Block themes.

    The current workaround we can offer:
    add_filter('woocommerce_paypal_payments_single_product_renderer_hook', function() {
    return 'woocommerce_after_add_to_cart_form';
    });

    Since you got this issue already resolved, and it seems our developers are on top of this, I will mark this thread as resolved.

    Kind regards,
    Joost

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with paypal button placement’ is closed to new replies.