Edit Blog Page


Is this possible to edit this blog page to add an image like on the top like this page with Pro?

Thanks in advance!

Hello @abdurrehman,

Thanks for asking. :slight_smile:

Please add following code in your child theme function.php file to display banner image on blog page:

    function custom_banner() { 
     if ( is_home() ) : ?>
      <div class="custom-banner x-container">
        <img class="x-img mbn" src="Image URL goes here" alt="" title="" style="width: 100%;" />
      <?php endif; 
add_action('x_after_site_begin','custom_banner', 30);

Replace Image URL goes here with the URL of image.



Thank you, it did work. could you please explain a bit how to define if the page is different? Is that determined by the is_home ?

To edit my blog, I’m trying to achieve this view with Pro. Can you help me out? Just wondering how to add the search bar or model there as it’s on Elegant Themes blog.

Many thanks in advance!

Hi There,

Thank you for writing in, is_home() is when you only want to target the blog page.
You use is_page() if you need to target a specific page.

Pro Header Builder has the Search Inline element, you can create that layout if you built that section as part of the Header.


Hi there!

Thanks for your reply.

Yeah, but I have set already one header globally so making another to have the Search inline isn’t working. Is there any workaround?


Hi There,

The workaround is a customization but that would outside the scope of our support. Post page or blog page is included on the assignment area of the header builder. Aside from a header assigned globally, we can still assign a different header for blog page. Can you clarify the issue you were having on this setup?

Hi there!

The issue is I have set a global header and on setting another header on the blog page doesn’t show up.

Thoughts, please?

Many thanks

Hi There,

Please check first for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

If the issue is not cause by a plugin, please do share credentials on a secure note so we can check if there’s any error.

Ok. Before that, can we have two headers? One global and another the normal ones?


Hey @abdurrehman,

Do you mean you want a global header and a unique header for each page? If so, that is not currently possible. Please watch out for the Template Manager feature. With that, you can design/build a header and make it a template to be reused. Though it is can’t mix headers, you can easily add a pre-built header.



No, I don’t want a unique for each page. I have set a global header but for only the blog page need to have different because wanted add the inline search as have mentioned in prior replies.


In my templates, I don’t see the template manger
Where’s that?

I see. In that case, setting a header for the blog page is possible. Assign your header to the posts page.

Regarding the Template Manager, I said:

The feature is not yet available. Additionally, please see our status report.


Ok. Thank you!

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.