minimum portfolio double image

Community Forums Forums Design Tips and Tricks minimum portfolio double image

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  tribalcafe 1 year, 8 months ago.

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

    tribalcafe
    Participant
    Post count: 8

    I am using the following code to move the image above the post in the minimum theme which works great on blog posts but it causes the portfolio page to have two images

    http://www.garyfox.co.uk/portfolio/

    add_action( ‘genesis_before_post_content’, ‘generate_post_image’, 5 );
    function generate_post_image() {

    if ( is_page() || ! genesis_get_option( ‘content_archive_thumbnail’ ) )
    return;

    if ( $image = genesis_get_image( array( ‘format’ => ‘url’, ‘size’ => genesis_get_option( ‘image_size’ ) ) ) ) {
    printf( ‘<a href=”%s” rel=”bookmark”><img src=”%s” alt=”%s” /></a>’, get_permalink(), $image, the_title_attribute( ‘echo=0′ ) );
    }

    }
     

    #15116

    SoZo
    Moderator
    Post count: 1573

    You need to exclude the portfolio template in your conditional


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

    #15667

    tribalcafe
    Participant
    Post count: 8

    John thanks for your help much appreciated

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

You must be logged in to reply to this topic.