Hi there, I would like to be able to add the featured image to top of each post for Argo automatically.
Please could you advise me how to do this
thanks
Josse.
Hi Josse,
To add featured images, you can go to Dashboard / Appearance / Editor, open the content-single.php file in DW Argo theme, and find this code (somewhere at top of the file):
<div class="entry-inner">
Then add the following code right under it:
<?php if ( has_post_thumbnail() ) : ?>
<div class="featured-image">
<?php the_post_thumbnail('thumbnail'); ?>
</div>
<?php endif; ?>
Also, you’ll need to add CSS code for the featured image section, so go to Dashboard / Appearance / Customize / Custom Code, and add this code below to Header script:
<style>
.featured-image {
margin-bottom: 20px;
}
</style>
Hope that helps!
this works but I would like the size of the image to fill the container rather than be a small thumbnail. How do I do this?
See http://artmarketingsecrets.com/2011/04/want-to-sell-your-art-build-a-community.html
thanks
Josse
I figured it out. I changed the settings of my thumbnail image under Settings > Media in my wordpress admin
I think you have resolved this issue. I appreciate it !
Hi,
sorry I tried but I didn’t figure it out.
Code seems ok into content-single page & custom,
I’ve changed thumbnail’s size into settings > media
But it’s not working : http://www.newsresources.org/sinspirer-dautres-metiers-pour-mieux-faire-celui-de-journaliste
Could you help ?
Thanks a lot !
Hi Ced !
Please send me username & password of your site (via private answer) for further checking.
Regards,
Hi Ced !
We have checked your site, the issue is due you using the image size small.
Currently, the minimal size for featured post is 600x600px and you need to use images equal or larger than that size.
I could only recommend you to use the normal post instead of featured post to get rid of the blurry images issue & display thumbnail in the single post. Let me know if you need anything else.
Hope this helps !
Hi Dominic,
thanks a lot for your quick help.
Is there a way to change the height of a featured post ? Would like to be able to use a 600x150px for example.
Thanks !
Cédric
Hi Ced !
Of course, you can use the image 600 x 150 px and even any images have larger width than 600px.
Regards,
Please login or Register to submit your answer