I used the php inserter plugin and it still displays “Show Terms.” https://americansyndicate.org
Can you clarify what you mean by the “php inserter plugin”? The one we recommend in our article is called “My Custom Functions”. When I scan the source code on your page, the script above is not present at all. Can you provide some details as to how you are inserting that function onto the page? Whatever method you’re using doesn’t seem to be working correctly.
I installed the code using the “My Custom Functions” plugin from the directions. Here’s a link to a screenshot of what id did. Thank you so much Matt:-) https://americansyndicate.org/wp-content/uploads/2017/11/custom-php.jpg
Try this instead:
function disable_give_terms_slidein() {
// Only if jQuery is present and on single give form. You can customize as needed.
if ( wp_script_is( 'jquery', 'done' ) ) { ?>
<script type="text/javascript">
jQuery( '#give_show_terms a' ).removeClass( function() {
return jQuery( this ).attr( 'class', 'show_always' );
} );
</script>
<style>
#give_show_terms {
display: none;
}
#give_terms {
display: block !important;
}
</style>
<?php }
}
add_action( 'wp_footer', 'disable_give_terms_slidein' );