• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Change header background color and remove meta data from posts

Change header background color and remove meta data from posts

  • Unknown's avatar
    bonnyreg · Member · Aug 6, 2013 at 4:06 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hi again WP People.
    I’m within touching distance from completing the first phase of my blog.
    Could you please tell me how to change the color of my post header – and remove meta data (if possible) from post’s as well.
    I have checked out the forums and google, but no joy I’m afraid.
    I have CSS override and at the moment all pages and post are drafts. The blog I need help with is
    http://humorousscript.wordpress.com

    Regards once again Bonny Reg

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    thesacredpath · Member · Aug 6, 2013 at 8:40 pm
    • Copy link Copy link

    Hi Bonny, the first rule below gets rid of the meta data at the top below the post title. The second rule would get rid of the meta data at be bottom below the post (categories, tags).

    .entry-header .entry-meta {
        display: none;
    }
    footer.entry-meta {
        display: none;
    }

    The following will allow you to change the post/page title colors. The second rule is in case you wish to change the hover color for the post titles on the main blog page.

    .entry-title, .entry-title a {
        color: #CC0000;
    }
    
    .entry-title a:hover {
        color: #449900;
    }
  • Unknown's avatar
    bonnyreg · Member · Aug 7, 2013 at 1:35 pm
    • Copy link Copy link

    Once again I’d like to thank you for your guidance and sharing your expertise.
    I am learning html and CSS VIA books and video at a steady rate and enjoying every minute of it. But… without the invaluable help from you guys on the WP forums I would probably still be trying to style the first sentence of my first page.
    Keep up the great work!
    Bonny Reg

  • Unknown's avatar
    bonnyreg · Member · Aug 7, 2013 at 3:47 pm
    • Copy link Copy link

    Thank you. That worked great! Just a couple of quickies whilst we are on the subject.

    1. I am going to place my own nav-menu on my post, so how can I remove the post-navigation text in header and footer.

    2. I want to change header and footer background color. I tried a couple of things, but no joy. What I haven’t done is try your .entry-title, .entry-title a { } ABOVE – as I thought that it is specific to the title text, and I want to change the background color first.

    Thank once again.
    BR

  • Unknown's avatar
    thesacredpath · Member · Aug 7, 2013 at 6:01 pm
    • Copy link Copy link

    1. This will remove the top and bottom navigation on single post pages:

    .single #content #nav-above, .single #content #nav-below {
        display: none;
    }

    2. Are you talking about post footer and header areas, or the site footer and header areas?

    If you are talking about the site footer and header, give these a try. I’ve included some padding and you can adjust those as you like, or delete them. #colophon is the site footer and #branding is the site header.

    #colophon {
        background: none repeat scroll 0 0 #CC0000;
        padding: 1em 10px;
    }
    
    #branding {
        background: none repeat scroll 0 0 #CC0000;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
    }
    
    #site-title, #site-description {
        padding-left: 20px;
    }
  • Unknown's avatar
    bonnyreg · Member · Aug 7, 2013 at 7:52 pm
    • Copy link Copy link

    Thanks thesacredpath. This is fantastic information and will be very useful.

    I’m sorry I didn’t explain properly; but it’s the post headers and footers that I need to edit at the moment, and It’s the posts header and footer background colour’s I would like to change.

    I tried using page id {background-color: black; } —ect , and used post instead of page but that didn’t work. I was guessing a lot with the formula and might not have been far out and gave up after the attempts got into double figures. Rather hoping you can help again and put me right on it.
    Many Thanks
    Bonny Reg

  • Unknown's avatar
    thesacredpath · Member · Aug 7, 2013 at 8:10 pm
    • Copy link Copy link

    If you want to add a the same background color to all post headers and footers, add the following and edit the color as desired. I also included some padding for the title, which you can edit as desired. On the footer, since we have hidden the post footer, I am assuming you mean for the sharing.

    .post .entry-header {
    background: #449944;
    }
    
    .post .entry-title {
    padding-left: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    }
    
    .post div.sharedaddy {
    background: #449944;
    }
    .post div.sharedaddy .sd-title {
    padding-left: 5px !important;
    }
  • Unknown's avatar
    bonnyreg · Member · Aug 8, 2013 at 7:10 am
    • Copy link Copy link

    Excellent.
    Can’t thank you enough!

    Regards BonnyReg

  • Unknown's avatar
    thesacredpath · Member · Aug 8, 2013 at 3:14 pm
    • Copy link Copy link

    You are welcome BonnyReg.

  • Unknown's avatar
    bonnyreg · Member · Aug 9, 2013 at 3:10 pm
    • Copy link Copy link

    To TSP.
    I have tried all your tips (above) and still playing with editing.
    There’s just one thing that I cannot get to apply.

    I want to change the background color of the whole post including the header and footer, and then add and edit the other bits.
    I have achieved this with no problems on my pages Via advise from the forum, but on draft post no dice.
    Very sorry to keep asking questions on this issue, but it’s becoming frustrating.
    Kind Regards
    BonnyReg

  • Unknown's avatar
    thesacredpath · Member · Aug 13, 2013 at 12:42 am
    • Copy link Copy link

    Bonny, this will allow you to change the background for individual posts and pages.

    .hentry {
    background: #CC0000;
    }

    If you want the background on posts ONLY, and not on pages, add the following after the above.

    .page .hentry {
    background: none;
    }`

  • The topic ‘Change header background color and remove meta data from posts’ is closed to new replies.

Tags

  • customize background
  • Header
  • meta data
  • posts
  • toolbox

About this topic

  • In: CSS Customization
  • 2 participants
  • 10 replies
  • Last activity 12 years
  • Latest reply from bonnyreg

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions