center post title on twenty fourteen theme
-
Hi there,
I’ve been trying to center the title of my posts in the 2014 theme, using the code:
#content .entry-title, #content .entry-meta { text-align: center; }
The code did center the title, but is also visible. Obviously I don’t want to see the code, just my title.
What am I doing wrong?
The blog I need help with is: (visible only to logged in users)
-
Hi there, the code you have will work, but you would need the Custom Design Upgrade to be able to save that code and apply it.
You can try out and preview custom CSS before you buy as explained here though.
-
Actually, let’s make a small change to the selector used.
.entry-title, .site-content .entry-meta { text-align: center; } -
A follow-up question for thesacredpath,
I’ve been trying to remove the titles of some of my pages by editing the Custom Design CSS of the blog with the below, but it doesn’t seem to be working. Any advice?
.page-id-193 .entry-title {
display: none;
}The blog is naspaaaccreditation.wordpress.com (I’m on the “Standard One” Page. I think the blog is marked private but I can give you permission to view, right?)
-
-
No problems, I can see your private site. On the Standard 1: Managing the Program Strategically page, are you talking about that title right above the video in the center content area? If so, Organization has different selectors for the titles on pages and the CSS is structured a little differently. On that page, you would use this to hide that title.
#page-193 .headline { display: none; } -
Thank you!
If I want to center titles, etc. will I continue with the #page-193 instead of the page-id-193 ?
-
Yes, use the selector I have above and then change the unique page ID number part of it to the ID of the page you are working on and add whatever style declarations you need.
-
-
- The topic ‘center post title on twenty fourteen theme’ is closed to new replies.