How can I remove WordPress element IDs and Class names in the HTML?
Very much following this advice for body class: https://edinburghwp.com/removing-page-post-tag-category-taxonomy-ids-from-body_class-wordpress/
I’d like to remove the IDs and Classes that WP automatically ads to all its elements.
Someone has posted how to do this with menu items: wp_nav_menu remove class and id from li
But I can’t figure out a way to do it for say, custom HTML widgets, or text widgets, which produce an ID for each one that is created or added to a site https://cloudup.com/cDOPVyozlA8 –> it seems unnecessary since other classes control these areas.
Also asked this question about the parent page IDs https://stackoverflow.com/questions/62335732/how-can-i-remove-parent-pageid-id-body-classes-in-wordpress
Trying to reduce all the added CSS and HTML references to help with site speed…hopefully.