• Hi all,

    What CSS code would I need to style the h2 category headings on my home page separately (and exclude some if necessary)? Currently they all fall under a generic h2 style – surely there’s a way to break them down by their ID number??!! It seems like it should be easy but I can’t figure it out at all!! Any help greatly appreciated! Cheers! https://www.theyeattheiryoung.net

Viewing 3 replies - 31 through 33 (of 33 total)
  • Thread Starter thescribbler

    (@thescribbler)

    That seems to have done the trick! I saw quite a few differences between the two under the ‘foreach’ line – I guess these were intentional! There’s no way I would have spotted that extra bracket! Cheers for that! Will enter some CSS into the custom stylesheet and see how it goes…

    Thread Starter thescribbler

    (@thescribbler)

    Genius – that seems to be working perfectly! I can’t thank you enough for your help! I’ve been banging my head against a wall for ages trying to figure that one out! I reckon I’m just about ready to start putting actual content into it now (I’m attempting a satirical site). Top man!

    You’re welcome matey… ??

    I’d make one suggestion though, rename any categories with slashes or odd characters. Keep it to a-z, A-Z and numbers, else you’ll end up with invalid class names in cases where other characters exists..

    We could update the code to catch these, but the easier approach would be to just rethink the naming scheme for your categories…

Viewing 3 replies - 31 through 33 (of 33 total)
  • The topic ‘How to style h2 headings separately?’ is closed to new replies.