Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Other BFA WordPress Themes (http://forum.bytesforall.com/forumdisplay.php?f=3)
-   -   Thumbnails (http://forum.bytesforall.com/showthread.php?t=1322)

bilalasd Apr 18, 2009 03:13 PM

Thumbnails
 
sorry I couldn't find anywhere else to put this thread. The problem is that I have this piece of code

<img src = "<?php echo get_post_meta($post->ID, "thumbnail_url", true); ?>">

It gets an image depending the post id and I want it to show on the front page of my website beside the post title. Is there anyway to do that?

I also have question that is that I want my front page to have to columns of post rather than one, If its possible please reply.

Thanx in advance.

Flynn Apr 19, 2009 07:59 AM

It should be possible to put the code into the "Kicker: Homepage" section at Theme Options -> Post/Page Info Items and wrapping it into a DIV container that is floated to the left side.

The headline container below it should move up to the right side of if. Various margin/padding settings may be required to align both of them until it looks good

Post/Page Info Items -> Kicker:Homepage

PHP Code:

<div style="width: XXpx; float: left; margin-right: 20px;">
<img src="<?php echo get_post_meta($post->ID"thumbnail_url"true); ?>" />
</div>

HTML/CSS Inserts -> CSS Insert

HTML Code:

/* apply to all headline boxes on the homepage : */
body#body-frontpage div.post-headline {
width: ZZZpx; /* or, in a fluid layout, try display: inline; */
margin-top: -YYpx; /* negative top margin to move it further up if required */
...
}


kelly7898 Mar 20, 2010 12:24 AM

Thank you for the post.
Hi guys, Im a newbie. Nice to join this forum.

_________________
Watch The Bounty Hunter Online Free


All times are GMT -6. The time now is 03:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.