• I am really struggling to get my head around wordpress. It is more frustrating than it is hard. Say for instance: I set my h2’s in style.css. Fine they work. Except!! the h2’s that are in the sidebar.php file. Now I am not a CSS guru nor a n00b. But shouldnt the CSS h2 apply to every h2 through out the site? I am finding myself having to go back in and tweak each module sidebar.php. footer.php…… Also on that. I finally got my homepage just about setup and looking great. Only to find I have to go in and tweak a bunch of other pages (ie single.php….). Maybe I am doing something wrong. But basically I took apart a existing template to fit it to my own. https://www.philpottracing.com (as you can see the h2’s in the side bar dont match the other h2’s). I guess this is a more of a rant than a cry for help. But is there an advice someone can give me on skinning my blog? It just seems it shouldnt be this hard. I heard WP was intuitive, but at this point I am finding it hard to believe. But it could be that I am just new to the system.

    Please advise

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter webshot

    (@webshot)

    bump

    Don’t bump after 2 hours… some moderators become very mean seeing something like that ??

    Normally, the h2 style should be inherited, unless they have a different class in the sidebar’s output. (Some h2 tags in the sidebar are generated by WP – yes, it always drives me crazy – without asking you.)
    So, you can check your source code for the output and add classes to the stylesheet if they are generated.
    On the other hand, most themes have the sidebar in some kind of “sidebar” or “menu” div – I usually just add to the stylesheet:

    #sidebar h2 (... your style here}

    Thread Starter webshot

    (@webshot)

    Thanks for the reply, and sorry for the bump, I didnt think it would get seen on page 3 (pages accumulate fast ?? ). I was hoping I did not have to do that. BUt it is not much of a big deal. just didnt want to go too deep on that route only to find out I didnt have to. But alas it seems I do.

    Thanks a bunch.

    I just created mine anyway, as they were going to be different.

    How are they different? Is it just font size? Are you using em to declare font size? Em inherits the size from the parent, so recently I had an issue where I had went to em 1.4, and then wondered why a child of em1.0 was still so big.

    Thread Starter webshot

    (@webshot)

    Well I have the H2 set in general to be a certain color. And for what ever reason the H2’s in the sidebar totally ignore the h2 in the css. I am noticing this in a few instances actually. I wonder if it has something to do with the way the page is rendered. Form buttons seem to act weird as well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘H2’s in the sidebar dont behave’ is closed to new replies.