Frank
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Superhero] Center photo in postThanks Kathryn for your insight. I finally managed to figure it out and the display is exactly what i wanted.
The original container in “style.css” was this:
.attachment-feat-img {
margin: 0;
padding: 0;
max-width: 100%;
height: auto;
}and I modified it to this:
.attachment-feat-img {
display: block;
margin-left: auto;
margin-right: auto;
padding: 0;
max-width: 100%;
height: auto;
}Now it works perfect. A portrait image is centered across the template not displayed on the left side of the page.
Thanks for the help.
Forum: Themes and Templates
In reply to: [Superhero] Center photo in postSorry for the misunderstanding.
I originally had the same problem and found out that it originates from the restriction of the pixel size.
So to display the image i modified content.php to make the size greater than 399 not as it was originally (645 pixels) (:
if ( $image[1] >= 399 ) :
the_post_thumbnail( ‘feat-img’ );
endif;The same changes I applied them to content-page.php and content-single.php. With this modification portrait pictures are displayed as well, now my new problem was how to center the image. And this is what i’m trying to resolve now.
Hope the issue is clearer now.
Thanks.
Forum: Themes and Templates
In reply to: [Superhero] Center photo in postHi Kathryn, the link to the screen capture is http://www.frankpsaila.com/?attachment_id=7613.
This template is not yet online because of this small inconvenience.This is a partial picture but the defect is clearly visible. The picture is oriented to one side of the page with a wide margin to the right. I tried several tweaks to center it but all were futile.
Since it is in portrait orientation I would like to center it. Any ideas where i need to change will be greatly appreciated. My posts are mainly photos so this feature is a recurring thing in my posts.
Frank