How to change post title size

  • Vaibhav

    #13766

    Thank you very much Kim and Syahir Hakim, you solved my concern.

    Just one more question, now how can i align this post title in center. By default it is aligned left. I do not want to use center tag for every post.

    Thank you with regards

    Vaibhav

    Kim

    #13767

    Well, You can use text-align: center;

    h2, h2 a, h2 a:visited {
    font-family: georgia,verdana,tahoma,arial;
    font-size: 30px;
    text-align: center;
    }

    Then again its a general change 🙂

    Kim

    Vaibhav

    #13768

    Thanks Kim you saved me from typing that HTML code in every post title.

    Thank you with regards

    Vaibhav

    Vaibhav

    #13769

    Hi Kim, I need your help once again.

    After applying your code everything was working fine until i updated my theme to the latest version and i didn’t backed up my files before updating. Now the size of my post’s title is again back to 18px and title is aligned to center only on homepage. If you open up a post the title is aligned left. My child theme is still active but the code in it stopped working after updating the theme and as usual i have no idea why this happened. Need your help again.

    Regards

    Vaibhav

    Kim

    #13770

    Hi Vaibhav

    .post-title, .post-title a, .post-title a:visited {
    border-bottom: 1px solid #E3E3E3;
    font-family: georgia,verdana,tahoma,arial;
    font-size: 30px;
    padding-bottom: 5px;
    text-align: center;
    }

    This Just Might Work 🙂

    Kim

    Vaibhav

    #13771

    Thanks Kim, your code worked.

    Regards

    Vaibhav

Viewing 6 posts - 11 through 16 (of 16 total)

You must be logged in to reply to this topic.