Add a logo?

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
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
FlatPress Coder
Posts: 100
Joined: Sat Jan 26, 2019 7:40 pm

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! :)
Helpful FlatPress links: Project blog 📝 - FlatPress wiki 📖 - FlatPress@Twitter 🐦
Stay up to date with our feeds: Forum RSS feed 📜 - Project blog RSS feed 📜

🇩🇪 Habe aktuell für meinen Arbeitgeber hier im Ruhrgebiet eine Stelle zu besetzen! 🇩🇪
- Softwareentwickler (Webanwendungen) - unbefristet, sofort

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest