Add a logo?

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
Stoufb
Posts: 1
Joined: Mon Apr 27, 2020 10:10 am

Add a logo?

Post by Stoufb » Mon Apr 27, 2020 10:12 am

How do i replace site title with a logo?

User avatar
Arvid
FlatPress Coder
Posts: 558
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Add a logo?

Post by Arvid » Sat May 09, 2020 11:04 am

Hi, welcome to FlatPress :)

Please see the template files of the theme you use. For Leggero, the default theme, this would be the .tpl files in fp-interface/themes/leggero/. You should find the file header.tpl there which defines the look of your site's header. As for Leggero, the interesting part of the header is this:

Code: Select all

		<div id="head">
			<h1><a href="{$smarty.const.BLOG_BASEURL}">{$flatpress.title}</a></h1>
			<p class="subtitle">{$flatpress.subtitle}</p>
		</div> <!-- end of #head -->
Just replace the site title by your logo there.

If your changes are not shown immediately, please refresh the theme cache in the admin area ("Maintain" -> "Purge theme and templates cache").

And while you're on it: Our wiki holds tons of useful information about creating and editing themes and plugins, e.g. the Theme Mini-Howto.

Have fun using FlatPress! :)
Arvid

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests