Streamline child theme – removing top post image

Community Forums Forums Design Tips and Tricks Streamline child theme – removing top post image

This topic is: not resolved

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16439

    cbyroni
    Participant

    I would like to remove the image that appears at the top of my posts.

    This image is not responsive to the lightbox app I am using (WP Lightbox 2).

    I am not sure how to turn this image on or off. I have seen some other example of this theme where there is/isn’t this top image.

    Where should I be looking in order to understand this function?

    Thanks!

    Chad

    #16451

    SoZo
    Moderator
    Post count: 1573

    Delete this from functions.php
    [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]


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

    #24049

    Ksunw148
    Participant
    Post count: 4

    Thank you for this information. I love when answers are straight to the point and easy to understand.

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

You must be logged in to reply to this topic.