Remove Featured Image

Community Forums Forums General Discussion Remove Featured Image

This topic is: resolved

This topic contains 10 replies, has 3 voices, and was last updated by  Anthony Galli 5 months, 4 weeks ago.

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

    Anthony Galli
    Participant
    Post count: 71

    How do I remove the featured image from streamline while keeping the in post image? This is in reference to my blog post: 5 Steps on How to Create a Mac Vision Board

    http://AnthonyGalli.com
    #85261

    Anthony Galli
    Participant
    Post count: 71

    I keep trying, but failing. Is this impossible to do?

    I’d like to use a picture aligned left with my text. But when I insert a picture there it also shows up above the post title as a featured image. The two pictures are redundant. I’d just like to have the aligned left in-text picture… now I’m becoming redundant.

    #85324

    Summer
    Participant
    Post count: 955

    I haven’t used the newer Streamline, but if you change the Genesis settings to not include the featured image, does that work?


    #85368

    Anthony Galli
    Participant
    Post count: 71

    I’m using the old streamline. Within the Genesis theme setting I already don’t have checked off “include featured image.” Any other ideas on what might work?

    #85381

    Summer
    Participant
    Post count: 955

    Then you’re getting stung by the automatic fallback behavior in Genesis.

    Read some about it here (and yes, I did write that plugin):

    http://www.studiopress.com/forums/topic/no-need-for-featured-image-in-pro-themes/

    Brad Dalton also posted a tutorial on how to stop this behavior using Gary’s code:

    http://wpsites.net/web-design/prevent-genesis-2-0-archives-from-using-first-image-in-content-area-as-featured-image/

    For my needs, I didn’t use the conditional, just returning “fallback” as “false” was what I wanted, all the time.

    These solutions only work in Genesis 2.0


    #85465

    Santel
    Participant
    Post count: 6

    I am using Streamline Pro which is the new version here, http://www.santelphin.com/

    Since I am update to the new version already, I don’t have the old file but I hope nothing change between the two version. You can use FTP client to access to functions.php. If you are not familiar with php editor, I would recommend you to go to Dashboard > Appearance > Editor,

    The default will point to styles.css, check on the right side, Template > Them function (functions.php), click on it and remove these lines:

    //* Remove default post image
    remove_action( ‘genesis_entry_content’, ‘genesis_do_post_image’, 8 );

    //* Add post image above post title
    add_action( ‘genesis_entry_header’, ‘streamline_post_image’, 1 );
    function streamline_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( ‘%s‘, get_permalink(), $image, the_title_attribute( ‘echo=0′ ) );
    }

    }

    Then click update file (at the bottom) to save the modification. hope magic will happen for you.


    Blogging Tips – KhmerBird.com

    • This reply was modified 6 months, 1 week ago by  Santel.
    • This reply was modified 6 months, 1 week ago by  Santel.
    #86843

    Anthony Galli
    Participant
    Post count: 71

    I’ve been trying both of your suggestions. I can’t get either to fully work.

    Santel your suggestion solves the problem by stopping all in-post images from appearing up above the post, but in certain situations I want to display a featured image above the text and by eliminating the code it prevents me from having the flexibility to do so.

    Do you know how I can maintain that flexibility?

    #86869

    Summer
    Participant
    Post count: 955

    I think you may be confusing post image and Featured Image… they are two different things.

    Do you use the Featured Image box in your post editor page, or are you only using the Add Media to insert an image into the post body?

    If you specifically select a Featured Image using that metabox, that image will override any post image fallback. Then the other code in the snippets from my previous post should work just find for you.


    #87128

    Anthony Galli
    Participant
    Post count: 71

    I took a screenshot of what I’m talking about (sorry for the confusion or for being confused myself):
    file:///Users/galli01anthony/Desktop/Screen%20Shot%202014-01-26%20at%204.19.43%20PM.png

    When I click, “Add Media” and then click “Insert Into Post” – the image not only shows up within the post (as I want it to), but it also shows up above the title (which I don’t want). As you can see in my link, I didn’t click on “Set featured image,” but Genesis duplicates the image anyway.

    How do I prevent the image from duplicating above the blog post title?

    #87242

    Summer
    Participant
    Post count: 955

    Looks like your snapshot image didn’t attach.

    Anyway, Genesis by default will set your first post image as the Featured Image, as I said above.

    If you only want to display Featured Images where you specifically set them, then the code in Brad’s tutorial will work… I’ve used it myself as an add-on to functions.php, and also as the plugin I wrote with Gary Jones’ help.

    But if you want to be 100% sure about disabling the fallback Featured Image behavior, use this modification of Brad’s snippet:

    function prefix_stop_auto_featured_image( $args ) {
    	$args['fallback'] = false;
    	return $args;
    }

    That mod is basically what my plugin does, completely eliminates the fallback behavior no matter what.

    The one caveat is that you must be running Genesis 2.0… this will not work if you’re still running Genesis 1.9 or earlier.


    #87748

    Anthony Galli
    Participant
    Post count: 71
Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Remove Featured Image’ is closed to new replies.