Hemingway Rewritten – change black box colour

  • Unknown's avatar

    Hi,

    I am creating a blog within the Hemingway Rewritten theme, but I’d like to change the colour of the black box where the blog name will sit on the home page and also the colour of the menu bar. Could someone provide some code that I can insert into the CSS box to do this please? I’m not sure which color to change to yet but most likely a soft grey.

    Thanks in advance!
    Charlotte

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

  • Unknown's avatar

    Hi Charlotte,

    try this:

    .site-branding {
        background: none repeat scroll 0% 0% #666;
        display: inline-block;
        padding: 1.7em;
    }
  • Unknown's avatar

    Thank you Kaniamea that worked perfectly!!! :)

  • Unknown's avatar

    one other thing… do you know how I can align the menu bar to be centered rather than aligned to the left?

    Thanks!

  • Unknown's avatar

    It’s a little tricky in the Hemingway Rewritten theme because of how the menu sizes are set to a fixed width. You can undo it and then use display:inline-block and text-align:center to get around that. Here is an example:

    @media screen and (min-width: 800px) {
    	.main-navigation {
    		text-align: center;
    	}
    	.main-navigation ul {
    		max-width: inherit;
    		width: auto;
    		display: inline-block;
    		margin-bottom: -12px;
    	}
    }

    The “min-width: 800px” part is to limit the change to large screen sizes.

  • The topic ‘Hemingway Rewritten – change black box colour’ is closed to new replies.