WordPress.org

Forums

Changing Page Title font size and color in Twenty Eleven Theme (6 posts)

  1. hleehing
    Member
    Posted 3 years ago #

    Can someone tell me how to change the Page Title font size and color?...I have looked everywhere in the code without success...

  2. kimolson
    Member
    Posted 3 years ago #

    Me too... HELP!

  3. esmi
    Forum Moderator
    Posted 3 years ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues.

    Create a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

  4. richardbeu
    Member
    Posted 3 years ago #

    You need to change some CSS in the style.css file.

    .entry-title {
    	clear: both;
    	color: #222; /*Change This to whatever color you want*/
    	font-size: 26px; /*Change This to size you want*/
    	font-weight: bold;
    	line-height: 1.5em;
    	padding-bottom: .3em;
    	padding-top: 15px;
    }
  5. gwytherinn
    Member
    Posted 3 years ago #

    Hmm... changing the font size worked on the main page, but when you click through to the post the title is 26px again. Looks like the title is H2 class but I'm having no luck specifying font size for entry-content h2.

  6. richardbeu
    Member
    Posted 3 years ago #

    Ctrl+F to search for .entry-title in the style.css file.

    .singular .entry-title {
    	color: #000; /*Change This to whatever color you want*/
    	font-size: 36px; /*Change This to size you want*/
    	font-weight: bold;
    	line-height: 48px;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic