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.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to customizeXF

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

Search forums

Similar threads

Top