Last active
June 27, 2023 13:22
-
-
Save Glinkfr/77b654f609b19b9f71af6349c38ca518 to your computer and use it in GitHub Desktop.
Supprimer un élément HTML d'un site WordPress grâce à sa classe CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hook_glink_footer() { | |
?> | |
<script type="text/javascript" id="remove-by-class"> | |
jQuery(document).ready(function($) { | |
jQuery(".la_class_a_supprimer").remove(); | |
}); | |
</script> | |
<?php | |
} | |
add_action('wp_footer', 'hook_glink_footer', PHP_INT_MAX ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment