Home › Forums › Support › show featured image depending on the category post This topic has 7 replies, 2 voices, and was last updated 3 years, 8 months ago by Leo. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts September 18, 2018 at 2:14 am #679908 Liberty Hello, I want to customise a bit some category page and i wonder if it’s possible to hide/show the featured image depending on the category ? Thank you for this great theme π GeneratePress 2.1.4GP Premium 1.7.2 September 18, 2018 at 9:19 am #680335 LeoStaff Customer Support Hi there, You can use this filter: https://docs.generatepress.com/article/option_generate_blog_settings/ So the code would be something like this: add_filter( 'option_generate_blog_settings', 'lh_hide_category_featured_image' ); function lh_hide_category_featured_image( $options ) { if ( is_category( 'my-category' ) ) { $options['post_image'] = true; } return $options; } Adding PHP: https://docs.generatepress.com/article/adding-php/ Let me know π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 18, 2018 at 9:36 am #680357 Liberty Perfect, thank you =) September 18, 2018 at 10:14 am #680398 LeoStaff Customer Support No problem π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 19, 2018 at 12:42 am #680837 Liberty Leo, I was browsing the option but i don’t find the one that allow the content type to be ‘full content’ instead of excerpt (http://prntscr.com/kw3p8z). Is it a mistake on the doc or is this option unavaible ? Thank you September 19, 2018 at 5:03 pm #681647 LeoStaff Customer Support The excerpt length is actually handled by WordPress itself so it has the WordPress filter instead: https://docs.generatepress.com/article/generate_show_excerpt/ Let me know if this helps π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 19, 2018 at 11:52 pm #681832 Liberty Perfect, thank you again ! September 20, 2018 at 9:32 am #682327 LeoStaff Customer Support No problem π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In