• Resolved Dubsy

    (@dubsy)


    I’m working on editing an article that was published using the classic editor, and I have now changed it to Gutenberg paragraphs.

    I want to put a cover image at the start with text over the image, font color white and aligned to the left.

    Instead of the text being white and showing half-way down the image, it is publishing the text as grey and at the top of the image.

    This link is to a different page, created solely with Gutenberg so you can see the different style font (this is what I want for consistency): https://tinadubinsky.com/short-artist-statement/

    I’m not sure why they are different. Is it my theme, custom CSS or a bug caused by the change from classic editor to Gutenberg?

    Thanks for your help.
    -T

    UPDATE:

    I thought it might be a spacer block I added right beneath the cover image. But now that I’ve removed it, the problem still exists (plus I’d still want to use the spacer as the next paragraph text is just too close to the cover image for my tastes. ) I’ve left the spacer out for now.

    • This topic was modified 6 years ago by Dubsy.
    • This topic was modified 6 years ago by Dubsy.
    • This topic was modified 6 years ago by Dubsy.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Dubsy

    (@dubsy)

    I worked this out. I had the cover image on the once-classic post set to center on the page.

    Uncentering the image removed unwanted CSS. With center selected for the image, my theme was adding the following CSS code:

    .aligncenter {
        clear: both;
        display: block;
        margin: 0 auto;
    }

    The “display: block” parameter changed the appearance of the text over the cover image, uncentering it (vertically) and changing the font from white to grey.

    My theme is Generate Press.

    Closing this since I know what the problem is now.

Viewing 1 replies (of 1 total)
  • The topic ‘Classic to Gutenberg, cover image text not formatted’ is closed to new replies.