• 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 / link to the home page is misplaced on my header logo

link to the home page is misplaced on my header logo

  • Unknown's avatar
    treasuresoflisboa · Member · Feb 28, 2017 at 10:37 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hello!
    I have a logo on my header that is supposed to be linked to the home page of my site.
    I used the folowing CSS to reduce the size of my logo :
    a img {
    max-width: 50%;
    }

    (so it appears 50% of its original size. This is the only way I found to have a non-pixelised logo; otherwise, if I use a logo that I made myself and that is directly the right size, it is awfully pixelised.)

    But now, I have two issues :
    1. the link to the home page doesn’t appear at the right place anymore. only the bottom part of the logo is clickable and some white space next to the logo also is clickable.

    2. when I preview the mobile or tablet version of my site, the logo is aligned to the right, instead of being centered.

    Could you please help me ?
    thanks a lot!

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

  • Unknown's avatar
    thesacredpath · Member · Mar 1, 2017 at 2:45 am
    • Copy link Copy link

    Hi there, first off, go to Customize Site Identity and enter a title and tagline for your site as search engines frown on sites that do not have a title or tagline, and they can’t read the content of an image. After doing that, uncheck the box where it says, Display Site Title and Tagline and then save and your logo should then be fully clickable.

  • Unknown's avatar
    thesacredpath · Member · Mar 1, 2017 at 3:19 am
    • Copy link Copy link

    I’m seeing your logo left aligned on tablet and phone. First off, change your rule you used to resize the logo to the following.

    #header .site-logo {
    	max-width:50%;
    }

    As you have it, it could affect other linked images on your site.

    For the logo, to center it on tablets and mobile devices, add the following to the very bottom of your custom CSS.

    @media screen and (max-width: 767px) {
      #header .site-logo-link {
    	 text-align: center !important;
    	 float: none;
    	 margin-bottom: 30px;
      }
    	.logo-nav .title-holder {
    		text-align: center !important;
    		float: none;
    	}
    	#header #masthead {
    		display: none;
    	}
    }
  • Unknown's avatar
    treasuresoflisboa · Member · Mar 1, 2017 at 10:10 am
    • Copy link Copy link

    You little genius.
    Thanks again for your help, it seems to work perfectly ;) !

  • Unknown's avatar
    thesacredpath · Member · Mar 1, 2017 at 7:45 pm
    • Copy link Copy link

    You little genius.

    Now, things like that will go to my head. :)

    Thanks, and you are welcome.

  • The topic ‘link to the home page is misplaced on my header logo’ is closed to new replies.

Tags

  • home page
  • link
  • logo

About this topic

  • In: CSS Customization
  • 2 participants
  • 4 replies
  • Last activity 9 years
  • Latest reply from treasuresoflisboa

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