- This topic has 10 replies, 3 voices, and was last updated 3 years, 8 months ago by
Tom.
-
AuthorPosts
-
June 25, 2017 at 2:10 am #338580
Roman
I would like to have entry_title (or maybe the whole entry_header) displayed above the featured image for single posts. The featured image is displayed above content below header. Any ideas?
GP Premium 1.3.1June 25, 2017 at 8:21 am #338686Leo
StaffCustomer SupportHi there,
Have you tried the settings in Customizer > Layout > Page header > Single Post Header Location?
Or that doesn’t do what you are looking for?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 6, 2017 at 6:17 am #360513Roman
Hi Leo,
that doesn’t do what I would like to. I would like to have it above the featured image and not above the content. The featured image is displayed above content below header.
August 6, 2017 at 9:15 am #360570Leo
StaffCustomer SupportSorry little confused. Wouldn’t that just be Below Post Title in Customizer > Layout > Page header > Single Post Header Location?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 6, 2017 at 9:30 am #360583Roman
Sorry for confusion. Here is a screenshot with what I would like to achieve: https://www.dropbox.com/s/hqkz83au90ike7b/screen.jpg?dl=0
August 6, 2017 at 7:39 pm #360786Tom
Lead DeveloperLead DeveloperAh, so you want the image to still be above the content, but you want your title to be above it as well.
Looks like something the new Page Header update in 1.4 will be able to achieve: https://vimeo.com/223381628
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 16, 2017 at 8:54 am #367329Roman
Hm, no idea how to even setup page header in 1.4 for single posts showing single featured image while using Featured Image from URL plugin.
August 17, 2017 at 1:05 am #367774Roman
I try to achieve to have for example the post title displayed above featured image. While I use your code:
add_action( 'generate_after_header', 'tu_add_featured_image_from_url' ); function tu_add_featured_image_from_url() { if ( get_post_meta( get_the_ID(), 'fifu_image_url', true ) && is_singular() ) { echo '<div class="page-header-image grid-container grid-parent generate-page-header">'; the_post_thumbnail(); echo '</div>'; } }
which is hooked after header then the content of page header (with dinamic post title) should be displayed above page header and not below, shouldn’t it?
But it does not: http://telezjetele.cz/plannereck-solo/
August 17, 2017 at 8:51 am #368025Tom
Lead DeveloperLead DeveloperTry this instead:
add_action( 'generate_after_header', 'tu_add_featured_image_from_url', 50 ); function tu_add_featured_image_from_url() { if ( get_post_meta( get_the_ID(), 'fifu_image_url', true ) && is_singular() ) { echo '<div class="page-header-image grid-container grid-parent generate-page-header">'; the_post_thumbnail(); echo '</div>'; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 17, 2017 at 2:07 pm #368261Roman
Thank you.
August 17, 2017 at 5:26 pm #368370Tom
Lead DeveloperLead DeveloperYou’re welcome!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.