Page 1 of 1

picture on header

Posted: Sat Feb 13, 2021 6:16 pm
by rube2112
Can someone guide me as to how to put a small picture on the header in leggero v2? Thanks....Robb

Re: picture on header

Posted: Wed Feb 17, 2021 7:07 pm
by franah
Yes, here: viewtopic.php?f=2&t=110

It is made for leggero v1 theme, but it also works for v2

Re: picture on header

Posted: Thu Mar 11, 2021 2:51 pm
by virtualsky
I was able to put an image in my Leggero 2 theme by editing the header.tpl file, found under fp-interface > themes > leggero folder.

I added this to the block of code (shown below): <p><img src="movie-vault-header.png" align="right"></p>

Code: Select all

<body>
	<div id="body-container">

		<div id="head">
		    <p><img src="movie-vault-header.png" align="right"></p>
			<h1><a href="{$smarty.const.BLOG_BASEURL}">{$flatpress.title}</a></h1>
			<p class="subtitle">{$flatpress.subtitle}</p>
		</div> <!-- end of #head -->
	
	<div id="outer-container">
And this resulted in:

Image

Put the image file in the root folder of your webspace. Hope this helps.

Re: picture on header

Posted: Sat Mar 20, 2021 8:11 pm
by Arvid
virtualsky wrote: Thu Mar 11, 2021 2:51 pm I added this to the block of code (shown below): <p><img src="movie-vault-header.png" align="right"></p>
I would store the image within the theme folder, e.g. fp-interface/themes/leggero/imgs as franah suggested, and change the path in the img tag accordingly. Doing so, the image is integrated part of the theme (think about sharing your theme or creating a backup).

All the best,
Arvid

Re: picture on header

Posted: Sat Mar 20, 2021 9:51 pm
by virtualsky
A good idea. I was just pleased that I figured out how to put the image there in the first place! :lol:

Re: picture on header

Posted: Sun Mar 21, 2021 10:21 am
by Arvid
A good feeling indeed :) I started my FlatPress journey with the same steps :)