Archived topic
Page Header Image alignment
8 replies · Started by Radek on October 21, 2014
Hi Tom,
what is the best way to center Page Header Image ?
Maybe some CSS code like:
.page-header-image img {
margin: auto;
}
or You are going to add alignment into settings in future ?
Thanx Radek
Hi Radek,
This should work:
.generate-page-header {
text-align: center;
}
Let me know :)
works great ;)
but now I see, that featured images are centered too, I want center only Page header image...
thanx for help
Are you using an image in the page header, or content?
By featured image, do you mean in the blog?
I'm using image at Page header and Yes, featured image (build in WP feature) was centered too...
Hmm, well what's the difference exactly?
Are you only wanting to center Page Header content, or images? If images, then what's the difference between pages using the Featured Image for the image and the Page Header for the image? They both use the same markup, so it will be hard to specify which ones you want to center.
Let me know :)
Same markup ? That Image header is Your plugin and featured image is WP built in feature :)
For understandung, I'v got static Home page, when I use Header image plugin (just image tab, not need content tab) to show image and I want it centered.
Than I'v got category posts with featurfed images. At category index page, featured images are on the left side, but if I open post, featured image is centered but I want it to stay on the left side.
understand ? sorry for my english :)
Hmm I think I understand.
Maybe this code will work better for you:
.page .generate-page-header {
text-align: center;
}
Let me know :)
thats it, works ;)