Log in Sign up

Image as site title

Is there a way to replace the site title on the top left with an image, and still have it link to the landing page?

The site is lookingout.io


2 years ago, 7 replies   Edit question

I just checked your site and the image has been commented out. Do you want to replace the whole title with an image?

Answered 2 years ago · Edit answer

Yes, I would. Or at least have the option to test with an image.

Answered 2 years ago · Edit answer

You will want to fork an editable copy of your template, if you haven't done so already. Then open up the template editor and navigate to the file header.html under 'Source Code'. In that file, replace the contents of lines 3 through 5 with the following:

{{#avatar}}
<img class="avatar" src="{{avatar}}" alt="{{title}}"/>
{{/avatar}} 

Once you've done that, navigate to the photo settings page and upload a photo if you haven't done so already.

Does that work? Please let me know if you have any questions about this or anything else

Answered 2 years ago · Edit answer

Yes! This works perfectly well on desktop, thank you!

However, on mobile (iPhone 11), the text of Looking Out causes a line break that then occludes the title of the page.

The nav also runs off the right hand side of the screen, unless the phone is rotated to landscape mode.

Answered 2 years ago · Edit answer

Try adding the following style to #logo:

flex-shrink: 0

Does that help?

Answered 2 years ago · Edit answer

Yes, it absolutely does.

The nav is still running off the side of the screen.

Is there a CSS fix for that, too?

Answered 2 years ago · Edit answer

What do you want to happen on smaller screens? The links to wrap onto a new line? If so, you'll need to look into flex-wrap

Answered 2 years ago · Edit answer