What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Support Resolved How to Customize the Appearance of the Discount Label on Resources?

VisEntities

Active Member
Where and how can I customize the size, color, text, and overall appearance of the label that shows when a resource is discounted? Looking to tweak it to better match the rest of the design

1743055067496.png
 
It has the following classes:
Code:
label label--silver label--smallest

And a in the
Code:
 structItem--resource
div.

So you could work out something with css:
Code:
.structItem--resource  .label--silver {
Your css here
}
 
So smallest is 13px, I would love it to be 15px, basically want it same size as my price labels (the price label we had modified if you remember, it's not default xenforo)
1745056437449.png
 
You can try the following:
Code:
.structItem--resource  .label--silver {
    .xf-xfa_vet_resource_tag_label();
    color: hsl(var(--xf-textColorAccentContent));
    background: hsl(var(--xf-contentAccentBg));
    border-color: hsl(
        var(--xf-contentAccentBg--h), 
        var(--xf-contentAccentBg--s), 
        calc(var(--xf-contentAccentBg--l) - (var(--xf-color-adjust, 1) * 10%)), 
        var(--xf-contentAccentBg--a)
    );}
 
Not xfa_vet_extra.less otherwise wehn I modfy the addon it won't apply.

But as you asked for a modification I could put it there if you want.
 
Because if you put it there, you will have the problem that it won't take further changes I do to the add-on potentially.
 
Not xfa_vet_extra.less otherwise wehn I modfy the addon it won't apply.

But as you asked for a modification I could put it there if you want.
When I put it in xfa_vet_extra.less it applied the change, but when I put it in extra.less, it doesn't
 
It is abnormal.

Put it in there, if it fits I'll integrate it.

And then before you do next upgrade with the modifications you requested then you first revert the template.
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart