Streamline Pro & Featured Images

Community Forums Forums Design Tips and Tricks Streamline Pro & Featured Images

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Susan 7 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #97699

    txblond
    Member
    Post count: 2

    Hi,

    I am setting up a website on a testing server and having a lot of trouble with the Featured Images. I have the images turned on in Genesis but they were showing above the Post title and I want them to display in-line with the post excerpt text. I removed the Show text from the functions.php page and ultimately put it back in, but the images aren’t showing now at all.
    Code inserted is:

    /** Add post image above post title */
    add_action( 'genesis_before_post', 'streamline_post_image' );
    function streamline_post_image() {
    
    	if ( is_page() ) return;
    
    	if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) {
    		printf( '<a href="%s" rel="bookmark"><img src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    	}
    
    }

    Here is the test site:
    http://192.185.82.81/~bayelec/blog/

    I want the featured image (thumbnail 150×150) to show for each blog post, on both the blog page and the home page (http://192.185.82.81/~bayelec/) .

    Many thanks in advance for your help

    http://192.185.82.81/~bayelec/blog/
    #98442

    Susan
    Moderator
    Post count: 9544

    You’ve marked this topic as “resolved”, so I will go ahead and close it.

    Please start a new thread if you need to.

    Thanks!


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

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

The topic ‘Streamline Pro & Featured Images’ is closed to new replies.