Post Template (Style 13) Featured Image Size

Posted in: Newspaper
Post count: 8

Hello,

So, I was originally using the Default template for my posts, but found that I’d rather have the title and all the elements such as author, date, etc centered. I was attempting to do this through a Child template, but then found Style 13 which centers these elements perfectly. The only problem is that it blows up the size of my featured images to the point where they are now blurry. I really don’t want these images this big. Do I have a way to display the images in their original dimension while using Style 13? I’m not afraid to do a little coding or editing of files, I just need to know where to look. If there is a quick fix (ex CSS) that’d be even better. Do you have any suggestions? Or if I cannot adjust the size, is there a way to center the post title, author and date so that it’s similar to Style 13. Any help would be greatly appreciated!

Post count: 9544

Best way is to simply hack style template 13 to use the default image size from featured image. You can find all the templates in the theme folder.

Post count: 8

Hi Chris,

So that’s what I planned on doing, but I cannot find the line of code where the image size is declared.

I noticed that the code where the Featured Image is pulled from in “loop-single.php” and “loop-single13.php” are exactly the same. Additionally, this does not appear to be outlined anywhere in “single_template_1.php” and “single_template_13.php”.

Do you happen to know which file I should be looking at directly?

Post count: 8

I believe that I found a solution to my problem within the Style sheet:

.td-post-template-13 .td-post-featured-image img {
width: 500px!important;
}

This seems to achieve what I want, if anyone has a more elegant or “proper” work around I’d appreciate it!

Post count: 22421

Hello,

CSS is a good solution but you will have to be careful about the responsiveness. Please add your code in the desktop section only under advanced css as it needs a dynamic width for other devices such as mobile phones.

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.