Table of Contents
How to add a top and bottom widget bar to Leggero theme
What this guide does
This guide explains, how to add an upper widget bar and a lower widget bar to the Leggero theme family in FlatPress.
The three styles covered here are:
- FlatMaas Revisited
- Leggero
- Leggero v2
- Stringendo
What you will get
After following this guide, your FlatPress site can show:
- a top widget bar above the main content
- a bottom widget bar below the main content
- style-specific visual formatting for:
- FlatMaas Revisited
- Leggero
- Leggero v2
- Stringendo
Important safety note
Before you copy any file, make a full backup of your FlatPress installation.
At minimum, back up these folders:
fp-content/ fp-interface/ fp-includes/core/
If something goes wrong, you can restore your original files.
1) Feature package
Use this package if you want the top and bottom widget bar feature.
It contains the files that are needed for this feature.
Files used by the widget bar feature
Common files for all three styles
Copy these files into your FlatPress installation:
fp-interface/themes/leggero/comments.tpl fp-interface/themes/leggero/default.tpl fp-interface/themes/leggero/footer.tpl fp-interface/themes/leggero/index.tpl fp-interface/themes/leggero/static.tpl fp-interface/themes/leggero/widgetstop.tpl fp-interface/themes/leggero/widgetsbottom.tpl fp-includes/core/core.system.php fp-includes/core/core.widgets.php
These files do the structural work:
- they add the top widget bar
- they add the bottom widget bar
- they make sure the bottom bar is placed below the main layout
Style-specific files
FlatMaas Revisited
fp-interface/themes/leggero/flatmaas-rev/res/common.css
Leggero
fp-interface/themes/leggero/leggero/res/column.css
Leggero v2
fp-interface/themes/leggero/leggero-v2/res/common.css fp-interface/themes/leggero/leggero-v2/res/column.css fp-interface/themes/leggero/leggero-v2/res/print.css
Stringendo
fp-interface/themes/leggero/stringendo/res/column.css fp-interface/themes/leggero/stringendo/res/common.css fp-interface/themes/leggero/stringendo/res/admin.css fp-interface/themes/leggero/stringendo/res/widgets-under-main.js
Optional example files
The feature package also contains optional example files.
fp-content/content/static/topmenu.txt fp-content/content/static/bottommenu.txt
These files are examples.
topmenu.txtcontains example content for the upper menu bar.bottommenu.txtcontains example content for the lower menu bar.
Step 1: Make a backup
Before you change anything:
- Download a backup of your FlatPress installation.
- Keep a copy on your computer.
- If possible, also back up your hosting account before you upload new files.
Step 2: Unpack the feature package on your computer
- Download the feature package ZIP.
- Unpack it on your computer.
- You will see the same folder names that exist in FlatPress.
Do not unpack the ZIP directly into your live website unless you are sure what it contains.
Step 3: Copy the common files
Using FTP, SFTP or your hosting file manager:
- Open your FlatPress installation folder.
- Copy the common files from the package into the same folders on your website.
- Allow overwriting existing files when your program asks.
The common files are:
fp-interface/themes/leggero/comments.tpl fp-interface/themes/leggero/default.tpl fp-interface/themes/leggero/footer.tpl fp-interface/themes/leggero/index.tpl fp-interface/themes/leggero/static.tpl fp-interface/themes/leggero/widgetstop.tpl fp-interface/themes/leggero/widgetsbottom.tpl fp-includes/core/core.system.php fp-includes/core/core.widgets.php
Step 4: Copy the files for your chosen style
Now copy the files for the style you use.
If you use FlatMaas Revisited
Copy:
fp-interface/themes/leggero/flatmaas-rev/res/common.css
If you use Leggero
Copy:
fp-interface/themes/leggero/leggero/res/column.css fp-interface/themes/leggero/leggero/res/admin.css
If you use Leggero v2
Copy:
fp-interface/themes/leggero/leggero-v2/res/common.css fp-interface/themes/leggero/leggero-v2/res/column.css fp-interface/themes/leggero/leggero-v2/res/admin.css fp-interface/themes/leggero/leggero-v2/res/print.css
If you use Stringendo
Copy:
fp-interface/themes/leggero/stringendo/res/column.css fp-interface/themes/leggero/stringendo/res/common.css fp-interface/themes/leggero/stringendo/res/admin.css fp-interface/themes/leggero/stringendo/res/widgets-under-main.js
Step 5: Clear cached files
FlatPress may still use older compiled template files.
After uploading the files:
- clear the FlatPress cache
- if needed, empty the temporary files in:
fp-content/cache/fp-content/compile/
Be careful not to delete your own content folders.
If you are not sure, make a backup first.
Step 6: Activate the Leggero theme family
In the FlatPress admin area:
- go to the theme settings
- choose the Leggero theme
- choose one of these styles:
- FlatMaas Revisited
- Leggero
- Leggero v2
- Stringendo
Save your changes.
Step 7: Choose how you want to create the two bars
You have two choices.
Choice A: Use the example setup
This is the easiest way.
- Copy the optional example files from the package to the matching places in your FlatPress installation.
- The files are:
fp-content/content/static/topmenu.txt fp-content/content/static/bottommenu.txt
This gives you:
- a top bar that uses the widget
blockparser:topmenu - a bottom bar that uses the widget
blockparser:bottommenu - an example top menu page
- an example bottom menu page
Choice B: Configure the bars yourself in the FlatPress admin
Use this if you already have your own widget setup and do not want to overwrite it.
- Go to the FlatPress widget administration page.
- Add widgets to the new positions:
- top
- bottom
- Save the widget configuration.
A simple and popular setup is:
- top = one BlockParser widget for a horizontal top menu
- bottom = one BlockParser widget for a horizontal bottom menu
Step 8: Edit the content of the top and bottom bars
The easiest content for a top or bottom bar is a simple list of links.
The example files in the package use FlatPress BlockParser markup.
Example for the top bar
[list] [*][url=?]Home[/url] [*][url=?paged=1]Blog[/url] [*][url=static.php?page=about]About[/url] [*][url=contact.php]Contact[/url] [/list]
Example for the bottom bar
[list] [*][url=static.php?page=legal-notice]Legal notice[/url] [*][url=static.php?page=privacy-policy]Privacy policy[/url] [/list]
You can change:
- the visible text
- the link targets
- the order of the links
Step 9: Check the result on the website
Open your website in a browser and check:
- the top bar appears above the main content
- the bottom bar appears below the main content
- the normal right sidebar still works
- mobile view still looks correct
- the menu links open the right pages
How the three styles look
FlatMaas Revisited
With the provided common.css:
- the top and bottom bars become simple horizontal link bars
Leggero
With the provided column.css:
- the top and bottom bars become simple horizontal link bars
- the bars follow the classic Leggero look
- on smaller screens the bars switch to a stacked layout
Leggero v2
With the provided common.css, column.css and print.css:
- the bars are integrated into the more modern Leggero v2 layout
- the spacing changes at several screen widths
- the bars are hidden in print output
Stringendo
With the provided column.css, common.css, admin.css and widgets-under-main.js:
- the bars are integrated into the modern Stringendo design
- the bottom bar stays visually below the main content area
- Stringendo keeps its smart widget overflow behavior on wide screens
What you can customize without coding
Even without editing CSS or PHP, you can still customize a lot:
- change the menu text
- change the order of the links
- add or remove links
- choose whether the bottom bar also shows the admin widget
- choose a different style: FlatMaas Revisited, Leggero, Leggero v2 or Stringendo
What requires coding
This guide avoids code work as much as possible.
However, these tasks still require file editing skills:
- changing colors in a custom way
- changing spacing beyond the included design
- changing fonts with CSS
- changing the exact structure of the widget bars
Troubleshooting
The bars do not appear
Check these points:
- Did you copy the common template files?
- Did you clear the FlatPress cache / compiled templates?
- Did you add widgets to the new
topandbottompositions?
The website still looks the old way
Check these points:
- Did you copy the files for the correct style?
- Did you overwrite the old files on the server?
- Did your browser cache an old CSS file? Try a hard refresh.
Summary
For most users, the easiest and safest method is:
- install the common files
- install the files for your selected style
- edit the top and bottom menu content to match your own site
Requirements
You need:
- a working ≥ FlatPress 1.5.1 Stringendo installation
- the feature files from this package


