Forums
Home / Plugin: Head, Footer and Post Injections / How to exclude some pages? (more one? All pages of WooCommerce)
(@c-in-off)
9 years, 1 month ago
Hi!
I liked your plugin. Thanks.
But, how do to make Footer enable only on the Blog pages/post, and disable on the WooCommerce pages/items?
On the WooCommerce pages (create / edit mode) do not appear option to Disable top & bottom injections.
https://wordpress.org/plugins/header-footer/
(@satollo)
Hi, it should not add the content on woocommerce post types. If it does, you should surround your code with:
<?php if ($post->post_type == ‘post’) { ?> [your code] <?php } ?>