Site logo

Archived topic

Show sidebar beside "image before content"

8 replies · Started by Pieter on January 19, 2015

Viewing posts 1–9 of 9

Hi,

I don't know how to explain in the title. But simple problem see
I want a picture before the content, and it must only be shown on the first page. I want it as shown on te website, so nothing white around it. But I want the right sidebar beside it. I want to have a picture, button or text in it. Now the sidebar starts beside the content, but needs to go up.
First I did it with a hook, but the hook shows on every page, so now I added the picture into the page (under putting the text into the page there is the option of the pageheader)
How can I fix this or is this even possible?

Thanks in advance!

Gr. Pieter

Hi there,

Have you tried the Page Header add-on? It allows you to place the page header above the content (as it is now), or inside the content (next to the sidebar).

Let me know :)

Hi Tom,

Thank you for your response. That's exactly how I want it, but it keeps adding the white padding around the picture... See the website. I don't know what I'm doing wrong.

Gr. Pieter

Give this CSS a try:

.inside-article .page-header-image {
    margin: -40px -40px 40px !important;
}

You may have to adjust the 40px depending on what you have set in the Spacing options.

Let me know :)

Hi Tom,

Thanks, that did the job!

But I has not to be this way? I mean, if I look at the 2nd youtube video on the page header page --> http://generatepress.com/downloads/generate-page-header/ on 33sec. it's works just in a flow, without using extra css code...

But it works for me now!

Thanks again and also for the great theme, ad-ons and support!

Gr. Pieter

A couple of our child themes have this style by default, but the main parent theme doesn't.

Looking into adding this option into the Page Header add-on :)

Ah, I see! Well thanks again for the quick response!

Gave you a 5 star rating on wordpress.org! :-)

Gr. Pieter

Thank you! :)

This archived topic is closed to new replies.