Community Forums › Forums › Archived Forums › Design Tips and Tricks › Design pro show feature image
- This topic has 10 replies, 3 voices, and was last updated 5 years, 3 months ago by
andytc.
-
AuthorPosts
-
August 18, 2020 at 12:28 am #500639
Annaedv
ParticipantHello
I search and try that tips and code "add_post_type_support( 'post', 'genesis-singular-images' );" to my theme Design Pro. But without success.
The image will not appear.
How can I do?I can see that the size are 1000x700 px and I wounder where this size is meant to fit?
Anna
https://ssk.fa-avance.se/August 18, 2020 at 1:03 am #500640Brad Dalton
ParticipantHere's another method to add the featured image to single posts in Genesis child themes.
August 18, 2020 at 1:30 am #500641Annaedv
ParticipantHello
I try that (as I said in my first post).
The image appears not in 1000x700 (as the theme has tha code) it appears in the same size as in the front (500x350).
• I want a full size inside the post (and page). This use to work in every other theme in Genesis?
• I want the feature img also in pages.How to do?
AnnaAugust 18, 2020 at 2:05 am #500643Brad Dalton
ParticipantThere's different methods.
To use the method built into Genesis, you would need to filter the value for the $size variable using the genesis_singular_image_size hook.
To enable the featured image on single pages, you could try adding a array to add_post_type_support.
Check out the default code within Genesis to learn more.
And you'll find more info in the docs https://studiopress.github.io/genesis/developer-features/featured-images/
August 18, 2020 at 2:12 am #500644Annaedv
ParticipantOkey - thank's.
But where is the img for 1000x700 meant to appear in the theme from the original start?
Why is the size there? Where is it meant to be?
AnnaAugust 18, 2020 at 4:34 am #500645andytc
ParticipantBut where is the img for 1000x700 meant to appear in the theme from the original start?
It's used for the front page image in the customiser
front-page-featured: 1000 - 700 (cropped to fit)
August 18, 2020 at 5:22 am #500646Annaedv
ParticipantBut that one is 500x350 although I set my settings to 1000x700.
And it it 500x350 in single post too.
Why?Anna
August 18, 2020 at 6:46 am #500647andytc
ParticipantIf you examine the css you can see it’s being limited in width to 500px , you could adjust that to suit your needs in the customiser css section.
August 18, 2020 at 6:57 am #500648andytc
ParticipantExample -
Default is -
img.entry-image { max-width: 500px; }Add to customiser additional css - change the pixel width to what you want
img.entry-image { max-width: 1000px; }August 18, 2020 at 7:13 am #500649Annaedv
ParticipantYes, I try that before, but that code changes the image in both the single post AND the content in front page.
That is not working.
Any other idea?
AnnaAugust 18, 2020 at 8:33 am #500651andytc
ParticipantYes , it will , you just need to be more specific with the code and decide where you want it.
This will change it on all archives and single posts but not the front page
.archive img.entry-image ,.single img.entry-image { max-width: 1000px; }you can also separate them off as you wish to get what you want
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.