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:
![Image](https://www.movievault.in.nf/fp-content/images/blogheader.jpg)
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">
![Image](https://www.movievault.in.nf/fp-content/images/blogheader.jpg)
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
- 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! ![Laughing :lol:](./images/smilies/icon_lol.gif)
![Laughing :lol:](./images/smilies/icon_lol.gif)
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 ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
Who is online
Users browsing this forum: No registered users and 38 guests