Going Green – Remove Featured image that is inside the post

Community Forums Forums Design Tips and Tricks Going Green – Remove Featured image that is inside the post

This topic is: resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  SoZo 1 year, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12621

    abuyer
    Participant
    Post count: 5

    Hello,

    How can I remove the featured image when someone open a post. I mean I do not want a featured image to be a cover when someone browse the full post.

    http://www.puregreencoffee.com

     

    Kind Rergards

    #12635

    SoZo
    Moderator
    Post count: 1573

    Delete this from functions.php

    add_action( ‘genesis_post_content’, ‘goinggreen_post_image_single’, 5 );
    /**
    * Add featured image to single posts
    */
    function goinggreen_post_image_single() {

    if ( ! is_singular( ‘post’ ) )
    return;

    $img = genesis_get_image( array( ‘format’ => ‘html’, ‘size’ => genesis_get_option( ‘image_size’ ), ‘attr’ => array( ‘class’ => ‘post-image’ ) ) );
    printf( ‘%s‘, get_permalink(), the_title_attribute( ‘echo=0′ ), $img );

    }


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #12643

    abuyer
    Participant
    Post count: 5

    Perfect, thanks.

    #12644

    SoZo
    Moderator
    Post count: 1573

    You’re welcome :)


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Going Green – Remove Featured image that is inside the post’ is closed to new replies.