Heading Image size

Ask questions about FlatPress themes, present your themes, request new themes.
Post Reply
User avatar
RainerBielefeld
Posts: 46
Joined: Fri Jul 18, 2025 7:15 pm
Location: Braunschweig, Germany

Heading Image size

Post by RainerBielefeld » Mon Dec 15, 2025 8:54 pm

Some Themes have a full width (Background) heading Image. Sumething like that I need to replace my old Wordpress Blogs (like this one or this here) by FlatPress blogs. The FP blogs should habe a similar design to the wordpress Blogs.

I can replace the heading picture by a different one / my logo, but it's a horrible hassle to get the picture into the correct size.

A related problem:
https://foss.weststadtaktivkasse.de/myfp/
heading picture with FlatMistyLoook Theme looks perfect with my Image. But in FF, Image, Edge the heading image width is too small – you see somethings added at the left and at the right.

Would be great to have some setting "Resize image to Contents width" (keep length/hight ratio), and contents will respect new heading image size.
Possible for me in the settings? Or FlatPress RfE?

CU

Rainer
New here. I am planning to switch from Wordpress to FlatPress. But it seems hard ...

User avatar
fraenkiman
Posts: 470
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Heading Image size

Post by fraenkiman » Wed Dec 17, 2025 12:40 am

Hello Rainer:

You need to edit the header.tpl file of your theme.

Insert the following at a suitable location (above <div id="outer-container">):

Code: Select all

<div id="headerimage"></div>
You then need to add this to the style.css or common.css file.

Code: Select all

#headerimage {
    clear: both;
    background: url(../fp-content/images/your_Heading_Image.jpg) center;
    margin: 10px;
    color: #fff;
    height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
}
Works responsively with Chrome and Firefox.
Screenshot 2025-12-17 013951.png
Screenshot 2025-12-17 013951.png (240 KiB) Viewed 311 times
Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
fraenkiman
Posts: 470
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Heading Image size

Post by fraenkiman » Wed Dec 17, 2025 12:59 am

RainerBielefeld wrote: Mon Dec 15, 2025 8:54 pm ... Or FlatPress RfE?
Some themes are not in great condition. Therefore, any support from the community is welcome. ;)
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
RainerBielefeld
Posts: 46
Joined: Fri Jul 18, 2025 7:15 pm
Location: Braunschweig, Germany

Re: Heading Image size

Post by RainerBielefeld » Wed Dec 17, 2025 7:38 am

fraenkiman wrote: Wed Dec 17, 2025 12:40 am Insert the following
Hi Frank,

thx for support! I tried your suggestion and see some progress. But for unknown reasons it does not work perfectly for me here.

Before suggested changes:
Image
Height ok, but width too much

After suggested changes:
Image
Width ok 👍
But now image is shown twice. I did some experiments with different image heights – theme insisted in showing it twice.

I don't think so, but may be I did something wrong?

CU

Rainer
New here. I am planning to switch from Wordpress to FlatPress. But it seems hard ...

User avatar
RainerBielefeld
Posts: 46
Joined: Fri Jul 18, 2025 7:15 pm
Location: Braunschweig, Germany

Re: Heading Image size

Post by RainerBielefeld » Wed Dec 17, 2025 11:10 am

@fraenkiman
Thx. for PM. Perfect service, so it works fine.

I will write a draft entry for (new?) "Templates - Tipps and Tricks" for the wiki, soon. I think that would ease handling also for other users.

CU

Rainer
New here. I am planning to switch from Wordpress to FlatPress. But it seems hard ...

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests