Remove Featured Image from Post, Not Home Screen

Community Forums Forums Design Tips and Tricks Remove Featured Image from Post, Not Home Screen

This topic is: not resolved

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

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #24811

    Brideau
    Participant
    Post count: 4

    I am trying to do the same thing the guy on this page did, but for the Fabric theme: http://www.studiopress.com/support/showthread.php?t=122715

    I think the Fabric theme is built slightly different though, so I can’t replicate what he had exactly. Anybody know how to do this? The site I am working on is: http://globalisationoflove.com/canada-birthplace-of-and-hotbed-for-the-globalisation-of-love/

    #24845

    Carolyn
    Participant
    Post count: 35

    I can’t access your link above, but I did remove the Featured Image above the post title by commenting out

    /** Add custom field above post title */
    /**add_action(‘genesis_before_post_title’, ‘fabric_post_image’, 8 );
    function fabric_post_image() {

    if ( is_page() ) return;

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

    }

    In the functions file. Is that what you are looking for?

    #24846

    Brideau
    Participant
    Post count: 4

    Close! Doing that removes the image from from the list of articles on the home page and the article itself. I am just looking to remove it from the article…

    #24849

    Carolyn
    Participant
    Post count: 35

    Have you set a featured image when you set up a post?

    I have the image in my post and on front page BUT NOT the big one…

    See my test site

    http://todd.carolyncreates.com

    #24984

    Brideau
    Participant
    Post count: 4

    Yes, I have set a featured image, but when I comment out the section mentioned above, nothing shows up on the front page. For example, on this page: http://globalisationoflove.com/canada-birthplace-of-and-hotbed-for-the-globalisation-of-love/ I have a big image in the post, and the featured image is set, but nothing is showing up on the homepage for it.

    #25337

    Carolyn
    Participant
    Post count: 35

    Hmm, not sure what to suggest.

    #25351

    anitac
    Participant
    Post count: 7062

    I think if you change this:

    [php]if ( is_page() ) return;[/php]

    to

    [php]if ( !is_home() ) return;[/php]

    The pictures on the home page will come back.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #25363

    Brideau
    Participant
    Post count: 4

    That worked perfectly, thank you!

    #25508

    Carolyn
    Participant
    Post count: 35

    Did you end up commenting out any of the functions before making that change?

    #25643

    Brideau
    Participant
    Post count: 4

    Hey Carolyn, nope! I just needed to make that one change. From what I can tell it prevents the rest of the function it is placed in from executing if the page isn’t the home page.

    #25664

    anitac
    Participant
    Post count: 7062

    Glad that worked for you @brideau.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

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

You must be logged in to reply to this topic.