When I'm building a Wordpress theme I usually comment the code which generates the element I want to remove, but I was wondering if professional Wordpress theme developers do it this way. Does Wordpress have filters and declaration which remove elements?
For instance removing elements in the contact form (e.g Website field). Date and links (e.g posted_in and posted_on) in posts (single.php) etc...
I know 3 ways so far:
- Via CSS: giving the element display: none;
- Commenting (
<!-- -->, //
) or deleting the code - Using some php filters or declarations
Which one is the most efficient and easy way (the one that professional Wordpress developers use?)