• Resolved TonyWilliams

    (@tonywilliams)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • We always need to see your site for CSS questions.

    Thread Starter TonyWilliams

    (@tonywilliams)

    Here’s the link
    https://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

    Thread Starter TonyWilliams

    (@tonywilliams)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change font size of Post title’ is closed to new replies.