Admin tab menu CSS question

Ask questions about FlatPress themes, present your themes, request new themes.
Post Reply
User avatar
macadoum
Posts: 51
Joined: Sat Jan 20, 2024 10:32 pm

Admin tab menu CSS question

Post by macadoum » Tue Feb 17, 2026 8:44 pm

Hello all, I'm working on a theme using Copilot. I have a problem with the theming of the admin section.

I can try whatever I want, Copilot is not able to work correctly on the styling of the administration tab menu and sub menu ( CSS : #admin-tabmenu and #admin-submenu)

I wonder if there could be another CSS applied to this menu from somewhere outside the theme folder ? Located elsewhere in the code? It's strange because it's really the only place where the AI fail the apply any change...

This is what I got actually :

Image
My test installation of FlatPress : https://macadoum.free.nf/ :D

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

Re: Admin tab menu CSS question

Post by fraenkiman » Thu Feb 19, 2026 1:30 am

The AI is too stupid for that. I have tested several LLM's.

- What you can try is to upload a very reduced repo. (No setup, just two language packs, minimalist plugin configuration, and a theme with one style (preferably Leggero v2).

- Then instruct the LM to test a container and create a working directory.

- Then instruct the LM to analyze the front end first (CSS + PHP code).

- Then instruct it to analyze the admin area.

- In between, you have to keep displaying and verifying a summary + evidence.

- Only when the LM has understood the code is it able to spit out something useful. Always have the diff and the patched files output.

At least this works reasonably well with Gemma 3 and OpenAI's 4o-mini-high.

You can expect to get something useful back only after the 40th prompt, with API access about 10 prompts less.

I believe you'll get there faster with the Chrome developer tool and a smart editor.

Good luck and 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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests