Site logo

Archived topic

problems with header image

28 replies · Started by Mark on January 8, 2016

Viewing posts 1–15 of 29

What the generate press page header video shows is possible with the header in the theme is nothing like what I am getting when I try all that stuff on my own pages.

When I set the page header image above content, you can't reduce the size as shown as the image height doesn't crop but proportionately reduces the image so that it is of a narrower width than the content area. Is there any way to stop this happening?

Example:

If you only set the height, it will resize proportionally.

If you set the width and height, it should hard crop and keep the width you set.

Let me know :)

But what if I want the image to be thinner but keep it's width? Is there no way to do that through the customizer (the header video on the GeneratePress site shows this being done on the pages window, but I assume this is from an earlier version and the option is no longer there)?

Then you would just enter the width of the image into the width field.

The width will only change if there's no value set.

Is doing that not working?

It's not working. I've enabled hard crop and set image to 1200 with 0 image height, and the image header displays at full size. That's good, but I want it to be narrower. So I keep the image width at 1200, but alter the height to 300, and the image shrinks both in height and width, like this:

http://marandall.com/about/

Did you upload the image through the "Page Header" metabox or the WP Featured Image metabox?

The resizing only works if the image is added in the Page Header area.

Through the "Page Header" metabox. :-)

Okay, I'll go through my plugins... ;-) You can tell I'm fairly new to this, can't you? :-)

Weird problems like this are hard to figure out, especially with a combination of plugins etc..

We'll figure it out :)

Okay, deactivated all my plugins and the header image resize is now working as it should. I'll let you know which plugin is the problem when I find out.

Another issue, though, with the page header image. When I set page header to 'inside content area' I want the image to fill that content area to the edges, but it doesn't - there's white space around it. How can I get the image to fill the content area?

Here's how it looks presently: http://marandall.com/about/

You could try some CSS like this:

.separate-containers .inside-article .page-header-image {
    margin: -50px -50px 50px -50px;
}

This would be a good option in the Page Header add-on. Noted :)

Newby coming out of me again, but can you please guide me to where I can paste in this code? Thanks...

This archived topic is closed to new replies.