Personally, I like to include "legal" links and other necessary things in the footer. After working on it for a month, I believe I've perfected the code, making it fully compatible with Flarum's own structure and colors. I’ve decided to share it with you all.
First, let’s take a look at some demo images:
How to implement:
All you need to do is paste the HTML and CSS code I provided below into the "custom footer" and "custom CSS" sections in your admin panel. It will automatically match your site’s primary color and will also work perfectly with the dark mode extension.
You only need to edit the HTML code within the "custom footer" section, adding your own links, titles, and text.
Additionally, you can fork it on CodePen if you wish:
I’m new to Flarum, and as I mentioned, I tried to use local styles and colors as much as possible and optimize the code.
I look forward to your suggestions and feedback.
If you are using the navbar extension on mobile, you can add this extra code to the custom CSS to prevent the navbar from covering the footer area.
/* Mobil Footer*/
@media @phone {footer {
padding-bottom: 74px !important;}
.App{padding-bottom:0}}
Flarum Türkiye (Türkçe) konu: https://flarumtr.com/d/4233-flarum-footer-kodu-responsive-ve-uyumlu