• 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 / Header Hight & Logo

Header Hight & Logo

  • Unknown's avatar
    timmogu · Member · Jan 5, 2017 at 8:15 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hello everybody,

    I recently changed my header and deleted the title and the tagline, because I only want to go with a logo.
    After changing it the header became even bigger than before. How can I change the header hight?
    The logo size is: 595x227px

    I’m not sure about it, but I would like to test how it looks like if the Logo would be aligned to the center… is that possible?

    Also can I change the logo size too?
    Beside creating a simply bigger version of the logo (which in return will increase the header hight again…)

    Thanks for the help.

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

  • Unknown's avatar
    timmogu · Member · Jan 5, 2017 at 12:11 pm
    • Copy link Copy link

    PS: The hight is the most important. The other two would be nice optinal things :)

  • Unknown's avatar
    thesacredpath · Member · Jan 6, 2017 at 6:34 am
    • Copy link Copy link

    Hi there, I see you have used the following to reduce the height of the header.

    .header {
        padding: 30px 0 15px;
    }

    To center the logo, add the following to the bottom of your custom CSS.

    .site-logo {
    	margin-left: auto;
    	margin-right: auto;
    }
    .site-logo-link {
    	display: block;
    }

    On the size increase, the theme and WordPress software actually create a 210px wide image off of your original, so if we enlarge that image, it will lose clarity. What we can do is to hide the downsized logo image and then use CSS to insert the original image. Instead of the above, add the following and see what you think. You can adjust the 150px height as desired.

    .site-logo {
    	visibility: hidden;
    }
    .site-logo-link {
    	display: block;
    	background: url(https://taiwantours.files.wordpress.com/2017/01/earthunbound_logoc_rgb_neg.png) no-repeat scroll center center / contain;
    	height: 150px;
    }
  • Unknown's avatar
    timmogu · Member · Jan 7, 2017 at 12:49 pm
    • Copy link Copy link

    Amazing! Thanks a lot!
    One last question: After using the padding to reduce the hight of the header, the space between menu and the first content became bigger.

    Is it possible to move the content up so that there is no space?

  • Unknown's avatar
    thesacredpath · Member · Jan 9, 2017 at 6:06 pm
    • Copy link Copy link

    Hi there, on the space at the top of the content above, that is an empty page title div. Add the following to make it the same as the sidebar.

    .home .single-post .post-header {
    	display: none;
    }
  • Unknown's avatar
    timmogu · Member · Jan 10, 2017 at 10:15 am
    • Copy link Copy link

    Perfect. Thanks a lot :)

  • Unknown's avatar
    thesacredpath · Member · Jan 10, 2017 at 8:02 pm
    • Copy link Copy link

    Hooray and you are welcome!

  • The topic ‘Header Hight & Logo’ is closed to new replies.

Tags

  • alignment
  • CSS
  • Header
  • hight
  • logo

About this topic

  • In: CSS Customization
  • 2 participants
  • 6 replies
  • Last activity 9 years
  • Latest reply from timmogu

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