Cyber Week Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] Page Header Image alignment

Home Forums Support Page Header Image alignment

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #40615
    Radek

    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

    #40650
    Tom
    Lead Developer
    Lead Developer

    Hi Radek,

    This should work:

    .generate-page-header {
          text-align: center;
    }

    Let me know 🙂

    #40876
    Radek

    works great 😉

    but now I see, that featured images are centered too, I want center only Page header image…

    thanx for help

    #40908
    Tom
    Lead Developer
    Lead Developer

    Are you using an image in the page header, or content?

    By featured image, do you mean in the blog?

    #41114
    Radek

    I’m using image at Page header and Yes, featured image (build in WP feature) was centered too…

    #41281
    Tom
    Lead Developer
    Lead Developer

    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 🙂

    #41440
    Radek

    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 🙂

    #41460
    Tom
    Lead Developer
    Lead Developer

    Hmm I think I understand.

    Maybe this code will work better for you:

    .page .generate-page-header {
          text-align: center;
    }

    Let me know 🙂

    #41792
    Radek

    thats it, works 😉

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.