WordPress.org

Ready to get started?Download WordPress

Forums

Default featured image
[resolved] Featured Image for Home Page? (5 posts)

  1. benjancewicz
    Member
    Posted 7 months ago #

    Will this plugin work to define the featured image for the whole home page?
    Right now http://ericawilliams.com/ is pulling blog post images when we post it to Facebook, and we'd rather feature to logo.
    Any ideas?

    http://wordpress.org/plugins/default-featured-image/

  2. janw.oostendorp
    Member
    Plugin Author

    Posted 7 months ago #

    This plugin will set a fallback image when no featured image is set. So when a post is missing a featured image, the fallback will be used.
    You can create exceptions.
    So you could set the logo as a fallback.

    Not sure what you want. Hope my answer helps.

  3. Trace Thurman
    Member
    Posted 7 months ago #

    I would like to know this as well. It is not working for me. I set featured images for all of my posts, so that when I post the link to one of my posts on facebook, that is the image that shows up next to the link preview.

    What I want is that when I just post the link to my blog's homepage, http://www.wineandwatch.com, the image preview that shows up is my logo. I can't seem to find a way to get this to happen, though. Whenever I try to share my homepage, it gives me 3 choices of pictures and it's the 3 featured images from my last 3 posts.

    Any way to fix this? Please help!

  4. janw.oostendorp
    Member
    Plugin Author

    Posted 7 months ago #

    After reading both your questions beter again. I understand what you are asking. The plugin does not support that.
    I do have a solution.

    Paste this in functions.php

    function add_home_FB_logo () {
    	if (is_home()) {
    		$image_id = 690; // ADD your image ID here
    		$image = wp_get_attachment_image_src($image_id);
    		echo '<link rel="image_src" href="' . $image[0] . '" />'."\n";
    	}
    }
    add_action('wp_head', 'add_home_FB_logo');

    It may conflict with other plugins that do the same.

  5. benjancewicz
    Member
    Posted 6 months ago #

    Thanks so much!!

Reply

You must log in to post.

About this Plugin

About this Topic