Viewing 2 replies - 1 through 2 (of 2 total)
  • david.bailey

    (@davidbailey-1)

    I would try to do the same edits in the home.php or the index.php where the code for the page is likely executed.

    Thread Starter Aviva B

    (@aviva-b)

    Getting back a little late…
    I’ve been trying to make the edits in the index.php file (no home.php file) and I can’t seem to get just the featured image removed without getting rid of the entire header image at the top.

    Here’s the relevant section of code (I think) – any suggestions?
    Thanks!
    ***
    <div id=”header”><div id=”header2″><div id=”header3″><div id=”header4″>
    <?php ctx_aj_site_title() ;?>
    <div id=”banner”>
    <?php

    //wp_die(‘||| ‘.(string)has_post_thumbnail( $post->ID ).’ |||’);

    // Check if this is a post or page, if it has a thumbnail, and if it’s a big one
    if (is_singular()
    && has_post_thumbnail( $post->ID )
    && ( $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID

    ), ‘post-thumbnail’ ) )
    && $image[1] >= HEADER_IMAGE_WIDTH ) {
    // Houston, we have a new header image!
    echo get_the_post_thumbnail( $post->ID );
    } else if ( get_header_image() ) {
    ?>
    <img src=”<?php header_image(); ?>” width=”<?php echo

    HEADER_IMAGE_WIDTH; ?>” height=”<?php echo HEADER_IMAGE_HEIGHT; ?>” alt=”” />
    <?php } ?>

    </div>

    </div></div></div></div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: Adventure Journal] Don't want featured image for each post showing on homepage’ is closed to new replies.