XF 2.x How to Hide unselectable styles

Messages
51
Likes
5
#1
Please let me know that How to Hide unselectable styles from admin? Back in XF1, there was a css code to hide the unselectables styles like this:

Code:
.unselectable
{
    display: none;
}
Is there a way to do this in XF2 via extra.less?
 
Messages
51
Likes
5
#8
I'll see what I can do...
Do you get that how to work?

Adding class in The template: style_chooser

Code:
                    <xf:foreach loop="$styles" value="$style">
                        <li>
                            <a href="{{ link('misc/style', null, {
Add in the class on the <li>

Code:
                    <xf:foreach loop="$styles" value="$style">
                        <li class="{{ !$style.user_selectable ? 'unselectable' : 'selectable' }}">
                            <a href="{{ link('misc/style', null, {
But I need work without manually template edit. So need add-on for automatic apply the template.
 

You must log in or register to reply here.

Forgot your password?
Don't have an account? Register now

Welcome to customizeXF

We are running default XenForo style customized by cXF
Registration is free!

Similar threads

Top