Site logo

Archived topic

pageheader on (single) blog page

6 replies · Started by Jasper on February 8, 2016

Viewing posts 1–7 of 7

I have 2 questions about the pageheader in a blog:

- how would i get on the single blog page the same header as the blog page?
- how would i make this header full width for both blog and single blog page?

http://www.hands2happiness.nl/nieuws/

Hi there,

1. Do you want the exact same page header for ALL single posts?

2. This feature is coming in the rebuild. For now, you can do this:

.page-header-image.grid-container {
    max-width: 100%;
}

.page-header-image img {
    width: 100%;
}

1. yes

2. thanks

1. if possible also for the blog archive pages?

You'd have to use GP Hooks in the "After Header" hook.

Something like:

<?php if ( is_single() || is_archive() ) : ?>
    <div class="page-header-image grid-container grid-parent generate-page-header">
        <img src="URL TO YOUR IMAGE" alt="" />
    </div>
<?php endif; ?>

Then check the "Execute PHP" checkbox.

Thanks again, I guess i can post the site in the showcase topic now!

You're welcome :)

This archived topic is closed to new replies.