I’ve already shown you how to remove featured images using CSS code however i was just asked how to do this using PHP code.
You can choose from at least 3 options:
- You can use PHP code to remove featured images conditionally in a custom function from your child themes functions.php file.
- You can add one line of PHP code to your child themes functions.php file to remove all featured images from your entire site.
- Lastly, you can add one line of PHP code directly to a template file to remove featured images from your single.php, page.php, blog listings page, archive, author, blog, category, search, or tag pages.
Leave a Reply