[Resolved] entry_title or entry_header above fetured image

Home Forums Support [Resolved] entry_title or entry_header above fetured image

Home Forums Support entry_title or entry_header above fetured image

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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?

    #338686
    Leo
    Staff
    Customer Support

    Hi 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?

    #360513
    Roman

    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.

    #360570
    Leo
    Staff
    Customer Support

    Sorry little confused. Wouldn’t that just be Below Post Title in Customizer > Layout > Page header > Single Post Header Location?

    #360583
    Roman

    Sorry for confusion. Here is a screenshot with what I would like to achieve: https://www.dropbox.com/s/hqkz83au90ike7b/screen.jpg?dl=0

    #360786
    Tom
    Lead Developer
    Lead Developer

    Ah, 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

    #367329
    Roman

    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.

    #367774
    Roman

    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/

    #368025
    Tom
    Lead Developer
    Lead Developer

    Try 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>';
    	}
    }
    #368261
    Roman

    Thank you.

    #368370
    Tom
    Lead Developer
    Lead Developer

    You’re welcome!

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.