• hockeyhero4

    (@hockeyhero4)


    USING THESIS 1.8.5

    I’ve been working on this problem for the last week. I’ve been through every forum, every code snippet possible, and tutorial online = no working result.

    ISSUE – When users hit share button I want my custom image used eliminating the user’s choice of thumbnail/image.

    HELP! – I’ve tried my own custom functions (in custom_functions.php of course) and even the ones online. I’ve tried plugins. I’ve done it all. I am exhausted and really need someone’s help please.

    Here’s what I’m using to generate my share links:

    function share_buttons() {
    ?>
    
    <?php if (is_home() || is_category() || is_page() ){ ?>
    <?php } else { ?>
    <div>
    <ul id="share-buttons">
    	<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="nofollow" title="Facebook It" target="_blank"><img src="WWW.MY-SITE.COM/share-facebook.png" alt="Facebook" /></a>
    	</li>
    	<li>
    		<a rel="nofollow" title="Tweet About It!" href="http://twitter.com/home?status=<?php the_title(); ?> <?php the_permalink(); ?>" target="_blank"><img src="WWW.MY-SITE.COM/share-twitter.png" alt="Twitter" /></a>
    	</li>
    </ul>
    </div><!--end social-media-->
    
    <?php } ?> 
    
    <?php
    }
    
    add_action('thesis_hook_after_post_box','share_buttons');
    add_action('thesis_hook_before_post_box','share_buttons');

    This code works fine and generates (facebook/twitter) share buttons at the top and bottom of each post.

    Does anyone have any advice on what I can do to get my custom image for each post as the shared image on facebook?

    As I stated, please don’t suggest plugins as I’ve tried them all. And if you Google my problem, I’ve been through the first 10 pages of each keyword search you can do for it and tried everything.

  • The topic ‘THESIS Theme | Custom Facebook Share Image’ is closed to new replies.