WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Fourteen
[resolved] Twenty Fourteen - Modify the look of page titles (3 posts)

  1. Jas999
    Member
    Posted 4 months ago #

    Hi,
    I want to change the change the look and feel of the title on pages, just below the feature image. I was successful in centering it, changing the color, the font, etc.

    The code I use only modify titles on FULL WIDTH template pages and I do not know why... Can someone help me so I can apply similar changes to other page templates, such as the 'default' or even custom page template I migh create in the future? Here is the code I use:

    .page-template h1.entry-title {
    	color: blue !important;
    	font-weight: 300;
    	font-size: 33px;
    	font-family: times new roman;
    	text-align: center;
    	}

    Thanks!

  2. Scott (@scottsweb)
    Member
    Posted 4 months ago #

    The prefix of .page-template will mean this only applies to sections/pages with that class. To modify all page titles you would need to be less specific with your selector. e.g:

    h1.entry-title {
    	color: blue !important;
    	font-weight: 300;
    	font-size: 33px;
    	font-family: times new roman;
    	text-align: center;
    	}

    or perhaps even less specific (to target everything with a class of entry-title):

    .entry-title {
    	color: blue !important;
    	font-weight: 300;
    	font-size: 33px;
    	font-family: times new roman;
    	text-align: center;
    	}
  3. Jas999
    Member
    Posted 4 months ago #

    Thanks! it now works.

Reply

You must log in to post.

About this Theme

About this Topic