Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Lucian,

    I’m guessing you’re using Yoast SEO too? This is an odd compatibility issue that crops up when those three are activated together —?Charitable, Yoast SEO and Divi. We have a fix for it for all the shortcodes bundled in Charitable & extensions, but for the donation form one you’ll need to add a bit of custom code. I put together a very simple snippet of code you can drop into your child theme’s functions.php:

    https://gist.github.com/ericnicolaas/debaa05dbc2630b1ff1beee547d651a1

    Alternatively, use the Code Snippets plugin to add that.

    We’ll make sure this gets into core too. We’re planning to introduce the charitable_donation_form shortcode in a future major release, so we’ll need the fix in there when that happens.

    Cheers,
    Eric

    Thread Starter Lucian Florian

    (@fldtrace)

    Hi Eric,
    Thank you for getting back to me. No there was not Yoast plugin, in fact, I tested with all plugins disabled and I’ve got the same error. I’ve also tested directly with the Parent theme so it seems to be some conflict with Divi. Everything is up to date.

    Furthermore, I’ve tried the code you sent me and it didn’t solve the issue.

    Hi Lucian,

    What if you use this code instead?

    add_filter( 'et_pb_admin_excluded_shortcodes', function( $shortcodes ) {
    	$shortcodes[] = 'charitable_donation_form';
    	return $shortcodes;
    });
    

    Cheers,
    Eric

    • This reply was modified 7 years, 6 months ago by Eric Daams. Reason: Change markdown to HTML markup
    Thread Starter Lucian Florian

    (@fldtrace)

    HI Eric,
    That worked! Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add donation form shortcode breaks back-end’ is closed to new replies.