We are facing severe restrictions within the Flarum Admin Panel that prevent us from properly customizing the layout and manually integrating Google AdSense units into strategic, revenue-generating areas (e.g., below the header and in the sidebar).
Any code currently placed in the available Header Code Field appears incorrectly in the design (above the logo and user notifications), which breaks the layout.
Required Technical Solutions
To resolve this issue and enable effective monetization, we require solutions that allow for manual, stable code injection:
Enable Custom HTML/JavaScript Fields
We urgently need dedicated input fields in the Admin Panel that allow for the safe injection of non-CSS code.
Request: Please enable or create input fields, preferably under the Appearance or Customization sections, for the following purposes:
Custom Header HTML: To inject AdSense code directly after the <body> tag (below the header).
Custom Footer HTML: To inject AdSense code before the closing </body> tag (above the footer).
Solution for Current Code Placement Issue
If enabling new HTML fields is not possible, we need a solution to correct the current code placement problem:
Current Problem: Code placed in the existing "Header Code" field appears at the absolute top, breaking the layout.
Request: Please provide a technical solution (e.g., an existing Flarum extension or a server-side configuration fix) that forces any code placed in the current Header Code Field to be rendered below the main header bar (logo, search, and user notifications), allowing us to manually position our AdSense units using CSS.