WordPress.org

Support

Support » How-To and Troubleshooting » Problem with size of page title

Problem with size of page title

  • Hello All,

    I’m having a stubborn problem with the size of the headings on my static pages.

    I’ve made both post titles and static page titles h2, which I’ve set to 1.4em.

    My post titles are the right size, however my static page titles are showing up smaller.

    Here’s an exampe of a post title: http://bit.ly/tyuNdx
    Here’s an example of a page title: http://bit.ly/metz0R

    My stylesheet is pasted here.

    I’ve also set my sidebar widget titles to h2, with a background colour, and they are displaying the same size as the page titles (which in the case of the widget titles, is fine. I want them smaller, though I don’t know what’s controlling that, as they are also set to h2).

    I used this code in the sidebar section to add the background color in the widget titles, without changing the size

    #sidebar h2{
    background-color:#FAEDE6;
    }

    Also, my monthly Archives titles, also h2, are showing up smaller too….

    I’ve gone through my CSS and template files but can’t find what’s causing certain h2 headings to be smaller than the post titles.

    Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • I found some additional code in The Post section that wasn’t in the original theme CSS:

    .post {
    font-size: 1.2em;
    margin-bottom: 30px;
    text-align: left;
    border-bottom: 2px dotted #C5ACD3
    }

    I suspect this has something to do with the problem, however if I remove this code, then the body text becomes very tiny, and if I increase the font-size, then both the heading and the body text get bigger.

    I hope someone out there can help me pinpoint the problem. I am stumped.

    esmi

    @esmi

    Forum Moderator

    Try using Firefox with the Firebug add-on for this kind of work.
    http://getfirebug.com/

    Thanks Esmi, I’ve never used Firebug before. I’ll give it a try.

    Still no luck… I just can’t get all the h2 headings to behave the same way 🙁

    Still working on this, getting closer…

    What is now clear is that the h2 headings that link to single posts, i.e. post titles on the main blog, post titles of single posts, and post titles in monthly archives, are all displaying the desired (larger) size.

    The h2 that are showing up smaller are headings that are simply page titles, i.e. not linking to anything, just sitting at the top of the page.

    Well, I’ve tried everything.

    I tried tweaking things with firebug but could not get the h2 headings all the same size…

    I reset all the heading sizes (h1, h2, h3, h4) to the original theme values (3.0em, 2,0em, 1.5em, 1.0em), and checked all the template files to make sure the h2 tags were in the right places, but still the static page titles are smaller than the post titles.

    I’m beginning to think this might be a glitch with the theme, as I recall having noticed this when I first installed it two years ago.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem with size of page title’ is closed to new replies.
Skip to toolbar