How to remove image from top of post?

Community Forums Forums Design Tips and Tricks How to remove image from top of post?

This topic is: resolved

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

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

    workthatearns
    Participant
    Post count: 4

    When i insert any image in a post on http://workthatearns.com it appears also above the post. I usuallly prefer medium images and this looks pretty ugly on top of the post. I do not wish that to happen. How do i fix it? I am using Streamline child theme.

     

    Thanks

    Harsh

    #9925

    daniel123
    Participant
    Post count: 52

    Took some time to find this, I actually did the same to my blog a couple weeks back.

    To remove the large featured image above the post, open up the functions.php in the child theme folder.

    Find this section of code and remove it.

    [php]
    /** Add post image above post title */
    add_action( ‘genesis_before_post’, ‘streamline_post_image’ );
    function streamline_post_image() {

    if ( is_page() ) return;

    if ( $image = genesis_get_image( ‘format=url&size=post-image’ ) ) {
    printf( ‘<a href="%s" rel="bookmark"><img class="post-photo" src="%s" alt="%s" /></a>’, get_permalink(), $image, the_title_attribute( ‘echo=0′ ) );
    }

    }[/php]

    http://www.studiopress.com/forums/topic/streamline-theme-pictures-auto-creates-itself-when-adding-a-photo/#post-4399

    #9926

    workthatearns
    Participant
    Post count: 4

    Thanks a ton mate! Worked like a charm :)

    #9928

    daniel123
    Participant
    Post count: 52

    No problem :)

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

The topic ‘How to remove image from top of post?’ is closed to new replies.