logo location in header

  • Unknown's avatar

    Ive had help with this before but It seems to have moved. I like where the header logo is on all the pages but when you go to a blog post the header moves from being centered to up in the top left corner. I’d like it to stay centered like all other pages. This is for the desktop version only.

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

  • Unknown's avatar

    Hi there, the Media Query code you have in your custom CSS is specifically targeting static pages. Replace it with this to have it center the logo everywhere.

    @media screen and (min-width: 956px) {
    branding {
        clear: both;
        margin: 40px 2%;
    }
    .wf-active h1.logo {
        font-size: 6.2em;
    }
    h1.logo {
        margin: 0 auto;
        text-align: center;
        width: 90%;
    }
    h2.description {
        text-align: center;
    }
    }
  • Unknown's avatar

    Could you tell me which of my css to remove? I don’t want to mess it up

  • Unknown's avatar

    Replace the existing
    @media screen and (min-width: 956px)
    rule you have in your custom CSS right now.

  • Unknown's avatar

    I must be doing something wrong cause my logo disappears when I add the new CSS.

  • Unknown's avatar

    First off, go to the very bottom of your custom CSS and paste this in below all other CSS.

    @media screen and (min-width: 956px) {
    branding {
        clear: both;
        margin: 40px 2%;
    }
    .wf-active h1.logo {
        font-size: 6.2em;
    }
    h1.logo {
        margin: 0 auto;
        text-align: center;
        width: 90%;
    }
    h2.description {
        text-align: center;
    }
    }

    Save and visit your site and make sure everything is working as you want it. If it is, go back to Customize > CSS and about half way down you will find this

    @media screen and (min-width: 956px) {
    	.page .branding {
    		clear: both;
    		margin: 40px 2%;
    	}
    
    	.wf-active .page h1.logo {
    		font-size: 6.2em;
    	}
    
    	.page h1.logo {
    		margin: 0 auto;
    		text-align: center;
    		width: 90%;
    	}
    
    	.page h2.description {
    		text-align: center;
    	}
    }

    delete that and save again. All I did to that code was to remove the .page CSS classes from the rules in that code so that the code would apply everywhere.

  • Unknown's avatar

    It works when both CSS are in. When I delete the old CSS, logo disappears. Ill just keep both unless you think it will mess something up. Thank you

  • Unknown's avatar

    Hmmm, strange. It doesn’t seem to do that for me. Yeah, just keep the old one in then.

  • The topic ‘logo location in header’ is closed to new replies.