FAQ C19 followed but CSS being ignored?

  • Author
    Posts
  • #36325
    Chris Garland

    I’ve got loads of custom CSS in the Miscellaneous section & while most of it is being used (colour, font family, etc) the text size is being ignored.

    How do I sort this out?

    Thanks

    #36334
    Ben

    I got the same problem with “Tempera”. I accepted setting font-weight to bold, but ignores the size.

    Used CSS:

    h4 {
    font-size: 1em;
    font-weight: bold;
    }

    #36364
    Zed
    Cryout Creations mastermind

    Make the styling more specific by adding body (or more exact containers) in front of the identifier or making the rules !important.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #36604
    Chris Garland

    Hi,

    Umm, can you give me an example please?

    Also, on a similar way, I’ve followed rule C6 (hiding page titles), but that’s also being ignored by my child theme.

    How would I resolve that issue?

    Thanks!

    Chris

    #36628
    Zed
    Cryout Creations mastermind

    Making CSS more specific usually solves styling that does not apply (due to existing theme styling overriding it).
    For example, if
    #content p { }
    does not work, change that to
    #parent-container #content p { }
    or
    body #content p { }


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #36784
    Chris Garland

    Perfect. Thanks!

    #36786
    Chris Garland

    Hmm…Tried both the #parent-container #content p { } & body #content p { } options and although the body #content did most of it (colour, italics, centring,) it didn’t do the size. Something must be stoping it somewhere else & I suspect that it’s the Test settings Headings Font setting that’s doing it (trial and error proved it).

    Have you got any additional suggestions Zed?

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘FAQ C19 followed but CSS being ignored?’ is closed to new replies.