Hi @dreampixel ,
Glad you reached out! Happy to help.
The good news is that this is totally possible! The Donor Dashboard loads in an iframe to prevent the theme’s styles from interfering with it, but this is also made it trickier to customize.
You can use this PHP code snippet to hide the “Edit Profile” section in the Donor Dashboard:
function override_iframe_template_styles_with_inline_styles()
{
wp_add_inline_style(
/**
* Below, use 'give-sequoia-template-css' to style the Multi-Step form template,
* 'give-styles' to style the donor dashboard, and 'give-classic-template' to style the Classic template
*/
'give-styles',
'
a.give-donor-dashboard-tab-link:last-of-type{
display: none;
}
'
);
}
add_action('wp_print_styles', 'override_iframe_template_styles_with_inline_styles', 10);
If you need assistance implementing custom PHP code on your website, we have this guide: https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/
Please note that this code snippet is provided as an example of how you can extend GiveWP with code. It’s up to you to implement and customize to your liking. We cannot provide support for custom code on your website, only the code that we create and distribute.
With that said, I’ve already tested this on a test site to confirm that this is working, so I’m marking this one as resolved. If you have further questions about this, you can post them in here, and I’ll be happy to hop back in.
Thank you for using GiveWP!
Merry Christmas and have a wonderful new year!
Hello! 🙂
Thank you for the fast respone.
This make total sense now. I was looking into the code, but couldn’t quite find what I needed.
This snippet did the trick – so thank you! 🙂
Kind regards