Move my logo

  • Unknown's avatar

    Hey, I want to move my logo from the center to the left corner, Can anybody help?
    Regards

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

  • Unknown's avatar

    Hi andersfys

    Try this custom CSS.

    .site-logo {
        text-align: left !important;
    }

    To add custom CSS

    Select Appearance > Customize > CSS from your Admin Dashboard and enter the custom CSS there.

    You need to be on the WordPress.com Premium Plan for custom CSS to save.

  • Unknown's avatar

    Thanks, It is now the left corner, but I want it a little down and the logo a little bigger so it is placed before the Headline/tekst in the top

  • Unknown's avatar

    Try this. I haven’t made the logo any bigger because it was causing problems when you resize the screen width.

    Let me know if this works for you.

    .site-logo img {
        position: absolute;
    }
    
    h2.site-title {
        padding-left: 2em;
    }
  • Unknown's avatar

    Thanks, : ) But is it not possible to make the logo a little bit larger

    Regards Anders

  • Unknown's avatar

    OK, try this.

    Replace the .site-logo img code I gave you earlier with:

    .site-logo img {
        position: absolute;
        max-height: 150px;
        height: 120px;
    }
  • Unknown's avatar

    Thanks : ) last question Is it possible to make the top “bar” where the logo and headline is placed at little higher so the text can be a little bigger?

    Regards

  • Unknown's avatar

    Here you go :)

    .site-title a, .site-title a:visited {
        font-size: 110%;
    }
  • Unknown's avatar

    Thanks again… the hight is perfect now, but the is a little to big i want it placed in one line instead of two.. Can I make the text a bit smaller but still maintain the hight of the “box”

  • Unknown's avatar

    Hi, you can try the following. The first rule you have in your CSS, so just add the font size declaration to it and then add the second rule.

    h2.site-title {
        padding-left: 2em;
        font-size: 2.3em !important;
    }
    .site-header {
        padding-bottom: 60px;
    }

    The one thing to keep in mind is that it will show as one line when the browser window is wider than the max width of the overall parent div. Once someone narrows their browser window, or if someone has the browser window set narrower than the max width of your site, the site title will go back to multiple lines. At around 700px in window width, the image starts to overlay the end of your site title. My suggestion is to add the following at the bottom of your CSS which uses a Media Query to adjust things below 700px in width and centers the logo above the title.

    @media screen and (max-width: 700px) {
    	.site-logo img {
    		position: inherit;
    		max-height: 100px;
    	}
    	body:not(.has-header-social-menu) .site-logo {
    		text-align: center !important;
    	}
    	h2.site-title {
    		font-size: 1.5em !important;
    	}
    }
  • Unknown's avatar

    Hello, I would also like to see my logo at the left side, next to the site-title.
    I tried to use this topic to move my logo.
    However, when I copy and save the code examples to css nothing happens. Maybe because I use another theme with the logo in another box.
    How can I change this?

    My blog: rumahedifoundationnepal.org
    Theme: Lovecraft

  • Unknown's avatar

    Hello hzoeter

    CSS is different for each theme. This should work for you. Remove your line of custom CSS that reads:

    .site-title {
        padding-top: 5px;
    }

    and replace it with:

    .site-logo {
        float: left;
    }
    
    .site-title {
        display: inline-block;
    }

    To add custom CSS

    Select Appearance > Customize > CSS from your Admin Dashboard and enter the custom CSS there.

    Let me know if it needs any more tweaking.

  • Unknown's avatar

    Thank you g471n,
    Now I only need to get it from the side to just left of the title.

  • Unknown's avatar

    I think I have worked it out for now, with some margin left and padding right. My (own) desktop view is correct and so is the mobile version. Only the the desktop view on mobile as well as on tablet are not the way it should be.
    If you have better ideas, your welcome.

  • Unknown's avatar

    Hello
    Can anybody help me with my logo, I can’t move it like I want.
    I want logo to be in line with pages on top.
    Sorry for my bad english.

    Site: http://test.hiteshqip.org/
    Theme: WPTube4

  • Unknown's avatar

    Demonstration:
    http://s22.postimg.org/tgxyy2o0x/untitled.png
    I made this with paint, to understand it.

  • Unknown's avatar
  • The topic ‘Move my logo’ is closed to new replies.