# 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

7 replies Asked Sep 13 '22 at 16:17 · Improve this question

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

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

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.

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.

Try adding the following style to #logo:

flex-shrink: 0

Does that help?

Yes, it absolutely does.

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

Is there a CSS fix for that, too?