[Resolved] H1 in blog posts don't respect customizer colors

Home Forums Support [Resolved] H1 in blog posts don't respect customizer colors

Home Forums Support H1 in blog posts don't respect customizer colors

Viewing 15 posts - 1 through 15 (of 32 total)
  • Author
    Posts
  • #286886
    Seppo Puusa

    It seems when H1 is applied in the post editor, the resulting heading doesn’t respect colors set in the customizer for H1. Instead, it picks up the text color set for body element. This is easy to fix this custom CSS, but I wanted to point out what seems like an oversight?

    Here’s the URL where you can see this:
    https://dev.mafyvalmennus.fi/hello-world/

    #286930
    Leo
    Staff
    Customer Support

    Hi there,

    I just tested this and it seems to be working for me.

    Do you see it change in the preview and it just doesn’t save?

    Let me know.

    #286932
    Seppo Puusa

    Did you check the URL? The H1 that’s used as the post title has a correct color, but ‘plain’ H1 applied in the WP post editor uses color setting applied to body element. Check the CSS on the page, there’s no other color applied on the H1 that’s within the post content.

    Here’s what the settings in the Customizer look like: http://i.imgur.com/MCgmCQC.png

    #286933
    Seppo Puusa

    And no, I don’t see it change in the preview.

    #286948
    Leo
    Staff
    Customer Support

    Yes I did check the URL.

    Just trying to get a little more info because it’s working for me: http://www.screencast.com/t/KVMOUb1K

    Weird that you are not even seeing the preview change. Will ask Tom to have a look πŸ™‚

    #287049
    Tom
    Lead Developer
    Lead Developer

    I’m not seeing any issues?: https://www.screencast.com/t/tcCRrjy8Qlc3

    #287064
    Seppo Puusa

    This is weird, but you do see the problem in the URL I pasted to the first post? There’s clearly no color applied to the H1, the only color declaration that applies to it comes from the body tag. Anyway, I can fix this with custom CSS.

    #287066
    Tom
    Lead Developer
    Lead Developer

    By default no color is applied to the H1 elements.

    When you go into the Customizer and look at that option (Customize > Colors > Content > Heading 1 (H1)), is there a color saved?

    #287072
    Seppo Puusa

    Yes, see the imgur link I posted above.

    #287078
    Tom
    Lead Developer
    Lead Developer

    Huh, that’s very strange. Can’t replicate on my side.

    Any chance you can send me temporary admin login details?: https://generatepress.com/contact/

    #287083
    Seppo Puusa

    I sent you the login details. Just to say it again, this is not a problem for me. I just wanted to let you guys know since this behavior was unexpected.

    #287153
    Tom
    Lead Developer
    Lead Developer

    Ha, well that was a weird bug!

    The class that creates the dynamic CSS checks to see if the same CSS has already been added before.

    In this case, it was thinking .entry-content h1 == h1 (your content title and H1 values are the same), so it wasn’t adding the h1 color.

    Appreciate the heads up! Fixed in the next version πŸ™‚

    #287235
    Seppo Puusa

    Glad to hear you figured out what’s wrong and I wasn’t crazy πŸ˜€

    #287407
    Tom
    Lead Developer
    Lead Developer

    Thanks again! πŸ™‚

    #346176
    Doug

    Having almost the same issue… my H1 tag respects the text color but not the background…for page and post titles for example. Am I missing something here?

    [screencast]
    http://somup.com/cbij3FVjKD

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