Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #61229
    Daniel
    Participant

    Hi 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
    Daniel

    #61372
    Sakin
    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 theme functions.php file and then remove the following code

    if ( 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>';
    	}
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘featured contend / disable pictures’ is closed to new replies.