[Resolved] merged header issues

Home Forums Support [Resolved] merged header issues

Home Forums Support merged header issues

  • This topic has 5 replies, 2 voices, and was last updated 6 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #548129
    dasigna

    hi there,

    one more issue facing:
    setting page header (merged header) for blog etc. – inserting elementor shortcode for displaying the header which works excellent but now running into some troubles i cant resolve…
    – single blog post is missing the featured image no matter what
    – monthly archives dont show any header at all, even though is set for all options in global areas

    category archives shows the header as expected.
    if no page header is set the single blog posts are showing the featured image.

    so two questions:
    1. how to show the featured image of single blog post even if page header is set?
    2. how to get the page header shown on monthly (yearly) archives?

    any help appreciated.

    #548499
    Leo
    Staff
    Customer Support
    #548552
    dasigna

    hi leo,

    thanks that helped a lot and works (nearly) like a charm πŸ™‚

    1. works, the featured image shows up.
    but: the featured image is always above the post title on single page – no matter what setting choosen within customizer. any way to get the featured image below post title?

    2. is solved, great.

    #548833
    Leo
    Staff
    Customer Support

    1. I think we just need to use a different hook:

    add_action( 'generate_after_entry_title', 'tu_add_featured_image' );
    function tu_add_featured_image() {
        if ( is_singular( 'post' ) && has_post_thumbnail() ) {
            the_post_thumbnail();
        }
    }
    #549154
    dasigna

    that did the trick πŸ™‚

    definitely should dive more into hooks options!

    big thanks leo.

    #549554
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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