WordPress.org

Ready to get started?Download WordPress

Forums

Childishly Simple
[resolved] Change font size of Post title (4 posts)

  1. TonyWilliams
    Member
    Posted 9 months ago #

    I would like to make the title of posts slightly smaller and the space between the title and the content of the post smaller . I thought this was the bit of code I needed to add to the child css file and edit but it doesn't seem to make any difference so I must have got the wrong code. Could someone tell me which line of the parent theme code would allow me to edit the size of the post title?
    Here's the code I used:

    h1.post-title,
    h1.page,
    h2.post-title{
    color:#828282;
    font-size:1 em;
    margin:6px 0 0 0;
    text-align:left;
    z-index:140;
    }

    Thanks
    Tony

  2. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    We always need to see your site for CSS questions.

  3. TonyWilliams
    Member
    Posted 9 months ago #

    Here's the link
    http://www.wordpresstest.thecapitalpartnership.co.uk

    The posts are in the right hand side bar. It's in a very, very rough design stage. I'm still getting to grips with WordPress before I create the real thing.
    Thanks
    Tony

  4. TonyWilliams
    Member
    Posted 9 months ago #

    I've now resolved this by editing the code in the CSS it wasn't the code I posted it was this:
    div.page h1 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 22px; color : #0045AC;}
    div.page h2 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 20px; color : #0045AC;}
    div.page h3 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 18px; color : #0045AC;}
    div.page h4 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 16px; color : #0045AC;}
    div.page h5 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 14px; color : #0045AC;}

    div.post h1 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 22px; color : #0045AC;}
    div.post h2 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 20px; color : #0045AC;}
    div.post h3 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 18px; color : #0045AC;}
    div.post h4 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 16px; color : #0045AC;}
    div.page h5 {font-family : Tahoma, Arial, Verdana, Serif; font-size : 14px; color : #0045AC;}

    Thanks anyway
    Tony

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.