XF 2.3 How to remove the prefix category header from the dropdown selection cleanly

beerForo

Well-known member
Issue: When I add prefixes from multiple categories, the drop-down shows all the headers in the list. But I want those headers for admin organization purposes only and I'd like the list to be seamless and not show a line or gap when they are removed. How would I do this with CSS?

Example...

Before:

----------------
TECHNOLOGY
---------------
computers
software
---------------
ENTERTAINMENT
---------------
movies
tv

After:

computers
software
movies
tv



Thanks!
 
Solution
Oh cool yeah, thanks!

I removed the menu separator also. It was faint but now it is clean.

CSS:
[data-template="forum_post_thread"], [data-template*="forum_view"]
{
    .menu--left .menu-header, .menu--left .menu-separator
    {
        display: none;
    }
}
This might be correct, it works. 😯

CSS:
[data-template="forum_post_thread"], [data-template="forum_view"], [data-template="forum_view_type_question"], [data-template="forum_view_type_article"], [data-template="forum_view_type_suggestion"]
{
    .menu-header
    {
        display: none;
    }
}
 
You can replace
Less:
[data-template="forum_view"], [data-template="forum_view_type_question"], [data-template="forum_view_type_article"], [data-template="forum_view_type_suggestion"]
By
Less:
[data-template*="forum_view"]

But your code will remove the Menu header from the filter menu too:

1728423843460.webp
 
Oh cool yeah, thanks!

I removed the menu separator also. It was faint but now it is clean.

CSS:
[data-template="forum_post_thread"], [data-template*="forum_view"]
{
    .menu--left .menu-header, .menu--left .menu-separator
    {
        display: none;
    }
}
 
Solution
Thanks so much for the help! I marked yours solved but if anyone reads this, the one I posted with the menu separator removed is 100% clean, just a list of prefixes, no gaps or lines.
 
I'm not sure to understand what you want to do.
Oh you mean the moderator menu on thread_view pages?

Less:
[data-template*="thread_view"]
{
    .menu--right .menu-header
    {
        display: none;
    }
}

🤷‍♂️
 
Last edited:
When you click to edit a thread or move it, in that window, I still see the prefix headers when selecting one and I'd like to remove them there as well as my titles are not intended the front-end and may confuse mods.
 
Back
Top Bottom