Theme editor



thxf.org

How To Move thread status icons

thxf.org thxf.org is verified member.

Administrator
Staff member
Admin
Thread owner
Would you like to have thread status icons on the left side before thread title?

chrome_2019-02-08_22-09-59-png.webp

Add this to your extra.less template:
Less:
/* Move thread status icons */
@media (min-width: @xf-responsiveMedium) {
[data-template="forum_view"], &[data-template="whats_new"], &[data-template="whats_new_posts"] {
    .structItem-statuses {
        float: none;
        &>li {
            margin-left: 0;
            padding-right: 5px;
            padding-top: 1px;
        }
    }
}
}
/*****/
*this will work on thread list, what's new and new posts page, on mobile view there will be no difference


Would you like to move only some of the thread status icons?

Examples:


chrome_2019-02-08_21-59-34-png.webp



chrome_2019-02-08_22-01-38-png.webp



chrome_2019-02-08_22-02-26-png.webp


Add this to your extra.less template:
Less:
/* Move thread status icons */
@media (min-width: @xf-responsiveMedium) {
[data-template="forum_view"], &[data-template="whats_new"], &[data-template="whats_new_posts"] {
    .structItem-statuses {
        float: none;
        >li {
            float: none;
            margin-left: 0px;
            .structItem-status--sticky {
                float: left;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--watched {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--poll {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--locked {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--deleted {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
            .structItem-status--moderated {
                float: right;
                padding-left: 5px;
                padding-top: 1px;
            }
        }
    }
}
}
/*****/
To change the icon side edit float class for each icon and choose left or right.

Note: make sure you always have these combinations: if you have float: left, make sure you have padding-right OR if you have float: right, make sure you have padding-left.

*this will work on thread list, what's new and new posts page, on mobile view there will be no difference
 

Attachments

  • chrome_2019-02-08_22-09-59-png.webp
    chrome_2019-02-08_22-09-59-png.webp
    2.4 KB · Views: 415
  • chrome_2019-02-08_21-59-34-png.webp
    chrome_2019-02-08_21-59-34-png.webp
    2.5 KB · Views: 374
  • chrome_2019-02-08_22-01-38-png.webp
    chrome_2019-02-08_22-01-38-png.webp
    2.5 KB · Views: 388
  • chrome_2019-02-08_22-02-26-png.webp
    chrome_2019-02-08_22-02-26-png.webp
    2.7 KB · Views: 378


Similar threads

thxf.org submitted a new resource: Xenforo 2.3 Font Awesome Icons (Default Theme) - Xenforo 2.3 Font Awesome Icons (Default Theme) add this less to extra.less Read more about this resource...
Replies
1
Views
634
Replies
1
Views
896
Summary: this small edit will allow for you to have read & unread post icons (indicators) to the left of the xenforo subforum grid titles.This enhancement is for xf v1.2 and above. Install: Upload...
Replies
0
Views
4K
  • Article Article
This latest update of vBulletin 5 Connect includes well over 440 bug fixes and enhancements to the product. Most of these fixes and updates focused on: Performance Optimization – incremental...
Replies
0
Views
5K


Back
Top Bottom