Home › Forum › Customization › Featured images in category view?
- This topic has 10 replies, 2 voices, and was last updated 11 years, 6 months ago by
kezdovega.
- AuthorPosts
- August 25, 2014 at 2:32 PM #1812
StartupWP
KeymasterYou’ll want to edit entry-summary.php (this can be done via a child theme: https://startupwp.com/topic/child-theming/) and just below this line:
<section class="entry-summary">add:
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>From there we can help you style the featured image in size and placement, please provide a link to one of your category pages and let us know how you want to style it.
August 25, 2014 at 10:22 PM #1817kezdovega
ParticipantThank you!
The site is on my wamp server so cannot give you a link.I made an .entry-summary img { class to the css and managed to make it smaller and float to the left. I would love to look like that, the picture is on the left, and all the texts (including the title and the author part and even the tags beside it. Is that possible?
August 26, 2014 at 12:04 PM #1819StartupWP
KeymasterYes, anything is possible, but difficult to test without something live to see.
August 28, 2014 at 1:41 AM #1825kezdovega
ParticipantI plan to upload it next week. I ll give a shout! :)
Thank you!August 28, 2014 at 2:57 PM #1828StartupWP
KeymasterSounds good.
September 11, 2014 at 2:25 PM #1871StartupWP
KeymasterAdd:
.archive .post header { display: block; float: right; width: 67%; } .archive .post .entry-summary { clear: both; }Update your .entry-summary img style to:
.archive .entry-summary img { float: left; height: 150px; margin-right: 10px; margin-top: -61px; width: 200px; }And finally, add:
@media all and ( max-width: 999px ) { .archive .post header { width: 100%; } .archive .entry-summary img { float: none; margin-top: 0; } }September 11, 2014 at 10:52 PM #1872kezdovega
ParticipantThank You! Works perfectly when the modify words are not there under every title! :)
September 12, 2014 at 3:12 PM #1873StartupWP
KeymasterYou’re welcome.
- AuthorPosts
- You must be logged in to reply to this topic.
