picture on header
picture on header
Can someone guide me as to how to put a small picture on the header in leggero v2? Thanks....Robb
- virtualsky
- Posts: 67
- Joined: Thu Mar 11, 2021 4:50 am
- Location: Saskatchewan, Canada
- Contact:
Re: picture on header
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>
And this resulted in:
Put the image file in the root folder of your webspace. Hope this helps.
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">
Put the image file in the root folder of your webspace. Hope this helps.
It ain't retro to me.... it's just how I live!
https://www.thegrove.in.nf/retroblog
https://www.thegrove.in.nf/retroblog
Re: picture on header
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).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>
All the best,
Arvid
Project blogββ Docsββ Twitterββ Mastodonββ Forum RSS feedββ Project blog RSS feedββ Donate
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
- virtualsky
- Posts: 67
- Joined: Thu Mar 11, 2021 4:50 am
- Location: Saskatchewan, Canada
- Contact:
Re: picture on header
A good idea. I was just pleased that I figured out how to put the image there in the first place!
It ain't retro to me.... it's just how I live!
https://www.thegrove.in.nf/retroblog
https://www.thegrove.in.nf/retroblog
Re: picture on header
A good feeling indeed I started my FlatPress journey with the same steps
Project blogββ Docsββ Twitterββ Mastodonββ Forum RSS feedββ Project blog RSS feedββ Donate
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 28 guests