Somehow i made a few nice changes according to my needs.
I will post here what I have done, and maybe someone will get into the same issues as me.
And you ..correct me if I do something wrong or stupid.
So.
I add in function.php the following code:
PHP Code:
// Add support for Featured Images
if (function_exists('add_theme_support')) {
add_theme_support('post-thumbnails');
add_image_size('index-categories', 61, 61, false);
add_image_size('page-single', 250, 352);
}
function InsertFeaturedImage($content) {
global $post;
$original_content = $content;
if ( current_theme_supports( 'post-thumbnails' ) ) {
if ((is_page()) || (is_single())) {
$content = the_post_thumbnail('page-single');
$content .= $original_content;
} else {
$content = the_post_thumbnail('index-categories');
$content .= $original_content;
}
}
return $content;
}
add_filter( 'the_content', 'InsertFeaturedImage' );
In CSS Insertion i add the following code:
PHP Code:
.attachment-page-single {
float: right;
margin: 12px 8px 8px 0px;
max-width: 250px;
height: auto;
}
.attachment-index-categories {
float: right;
margin: 12px 8px 8px 0px;
}
div.post-bodycopy {
width:372px;
}
Then in ATA at Post & Pages > Post Thumbnails CSS i put:
PHP Code:
margin:-100px -265px 15px 0;
After save.is almost ok.
However i have a few questions:
1. How i make the post featured image size to be width 250 and height as 352? (now is showing me a constrain proportions)
2. For home page, I have a custom homepage, where i insert 2 widgets, right and left. But how I make the featured image to dissapear from homepage?
The demo site is:
http://erobu.eu/demo/tmevents3/
Thank you and I hope I did ok :D
So..i get somewhere. But i still have some issues.