Hiding wp_head from certain pages. Isthis right?
-
Hi there,
I am using this code to hide wp_head from certain pages to save on plugin code being generated on pages it doe not need to be on. Is this the correct way to do so?
<?php //Remove wp_head from pages that does not require it. if (is_page(home) || (is_page("archive") || (is_page("biog")))) { ?> <?php } else { ?> <!-- WordPress Shenanigans (Bits & Pieces From WP Plugins) --> <?php wp_head(); ?> <?php } ?>
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Hiding wp_head from certain pages. Isthis right?’ is closed to new replies.