- This topic has 1 reply, 2 voices, and was last updated 8 years, 11 months ago by
Sakin.
-
AuthorPosts
-
July 20, 2015 at 12:24 am #61229
Daniel
ParticipantHi all,
on my frontpage, I have 3 columns for the featured contend (featured page contend) area.
One of this pages have several picture (no featured picture), the other two page contends no pictures.
my problem: on one of the 3 columns, the picture is shown on the frontpage. Is there a possibility to disable the picture in the featured contend area on the frontpage?
Thanks
DanielJuly 23, 2015 at 11:04 am #61372Sakin
Keymaster@Daniel: Sorry, when you choose Featured Content, it automatically get featured image of that page.
So, either you can hide that image by adding in the following css in “Appearance => Customize => Theme Options => Custom CSS Options” box
#featured-content .featured-homepage-image { display: none; }
or you need to build child theme and then copy function
catchresponsive_page_content()
to your child themefunctions.php
file and then remove the following codeif ( has_post_thumbnail() ) { $catchresponsive_page_content .= ' <figure class="featured-homepage-image"> <a href="' . get_permalink() . '" title="'.the_title( '', '', false ).'"> '. get_the_post_thumbnail( $post->ID, 'catchresponsive-featured-content', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ) .' </a> </figure>'; } else { $catchresponsive_first_image = catchresponsive_get_first_image( $post->ID, 'catchresponsive-featured-content', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ); if ( '' != $catchresponsive_first_image ) { $catchresponsive_page_content .= ' <figure class="featured-homepage-image"> <a href="' . get_permalink() . '" title="'.the_title( '', '', false ).'"> '. $catchresponsive_first_image .' </a> </figure>'; } }
-
AuthorPosts
- The topic ‘featured contend / disable pictures’ is closed to new replies.