![]() |
remove post image everywhere except on blog
I added this to the functions.php at http://studio55design.com
/** Customize the post image function */ add_filter( 'genesis_post_content', 'post_image_filter' ); function post_image_filter() { if (! is_category( '14' )) { remove_action( 'genesis_post_content', 'genesis_do_post_image' ); } } It works pretty much, it lets the blog page (which only has 1 category #14), but it also leaves one double image here http://studio55design.com/portfolio/ and here http://studio55design.com/portfolio2/ but only on the first image. Any ideas why it doesn't work on the 1st image? |
you can close this....fixed it
|
| All times are GMT -5. The time now is 06:56 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.