Skip to:
Content
Pages
Categories
Search
Top
Bottom

Post Thumbnail in BP-Default Theme

  • Trying to use Justin’s get_the_image plugin to display post thumbnail on the homepage, but unfortunately its all messed up.
    Here is the css :
    `div.thumbnail1 {float: left;}`

    and the code in index.php :
    `

    <a href="”>’http://localhost/wordpress/wp-content/uploads/2010/12/default1.jpg&#8217;,’custom_key’ => array( ‘feature_img’ ), ‘size’ => ‘medium’, ‘width’ => ’70’, ‘height’ => ’70’, ‘image_class’ => ‘post_thumbnail’) ); ?>

    `

    The post excerpt is rendered below the image, though I’d like it to be on the left side. Any idea how to get this working?

    TIA

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

  • Tammie Lister
    Moderator

    @karmatosed

    Whilst I’m not familiar with the plugin I have another suggestion that you use built in featured images that comes with WordPress. Forgive me if you have other reasons for using that plugin but maybe this will work for you.

    You can add post thumbnails using featured posts like this for instance in functions.php (adjust size according to what you want):

    `if ( function_exists( ‘add_theme_support’ ) ) {
    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 210,160, true );
    }`

    Then in the code:

    ` `

    There are many ways to skin the thumbnail cat though this link may help:

    https://codex.wordpress.org/Function_Reference/the_post_thumbnail


    r-a-y
    Keymaster

    @r-a-y

    Sounds like you have the image working, but you need to get acquainted with CSS, especially the float declaration.

    Try fooling around with this in your stylesheet:
    `
    .entry .thumbnail {float:left; padding-right:1em;}
    `

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Thumbnail in BP-Default Theme’ is closed to new replies.
Skip to toolbar