Hello @tooleypark ,
If for any reason the Pay Later tab or messaging options are not appearing in your interface, and you simply want the banner gone everywhere, the most reliable solution is to disable the Pay Later messaging with two small filters.
You can add the following snippet to your theme’s functions.php file or use the Code Snippets plugin if you prefer not to edit theme files directly:
add_filter('woocommerce_paypal_payments_product_buttons_paylater_disabled', '__return_true');
add_filter('woocommerce_paypal_payments_buttons_paylater_disabled', '__return_true');
Once this is active, all Pay Later banners and Pay in 3 messaging will be removed across the entire site, including the homepage.
If you apply this and the banner still appears, or if you want to check why the settings are not showing on your side, just let me know and we can take a closer look.
Kind Regards,
Krystian
Hello Krstian,
Thanks for your message.
Quite likely I’ve done this wrong but I’ve just tried this and the banner is still there
code snippets>I selected php snippet>gave the snippet a title>pasted your code in code preview box>didn’t change any other settings and hit the save snippet button. I also hit the purge cache for all pages afterwards.
Should what I’ve done work?
Regards, Philip.
Hello @tooleypark ,
Hard to say what went wrong, but indeed I’m still seeing a banner.
Please open a ticket with our service desk here: https://paypal.inpsyde.com/docs/request-support/
In the ticket, include the URL to this thread so we immediately know the context. We will take a look at your site and remove the banner right away.
Kind Regards,
Krystian
Thanks Krystian.
I’ve done as you instructed.
Regards
Philip.
Hello @tooleypark
Marking this as resolved. In case of any further issues, let us know!
If this solution helped and you’re happy with the support, feel free to leave a quick review on WordPress — it means a lot to us and shows that we are needed.
Kind regards,
Krystian