VisEntities Active member Sep 28, 2024 #1 I’m looking to increase the size of the price label on the resources overview page. Does anyone know where I can adjust this in the templates or CSS? Any guidance would be helpful!
I’m looking to increase the size of the price label on the resources overview page. Does anyone know where I can adjust this in the templates or CSS? Any guidance would be helpful!
D Deleted member 184953 Guest Sep 28, 2024 #2 I would add a class here (xfrm_resource_list_macros, line 88): HTML: <xf:if is="$resource.isExternalPurchasable()"> <span class="label label--primary label--smallest bigger--price">{$resource.price|currency($resource.currency)}</span> </xf:if> And in extra.less: Less: .bigger-price { font-size: 120%; } Upvote 0 Downvote
I would add a class here (xfrm_resource_list_macros, line 88): HTML: <xf:if is="$resource.isExternalPurchasable()"> <span class="label label--primary label--smallest bigger--price">{$resource.price|currency($resource.currency)}</span> </xf:if> And in extra.less: Less: .bigger-price { font-size: 120%; }
VisEntities Active member Sep 28, 2024 #3 The whole label disappeares whatever I edit <span><span>label label--primary label--smallest</span></span> Upvote 0 Downvote
The whole label disappeares whatever I edit <span><span>label label--primary label--smallest</span></span>
D Deleted member 184953 Guest Sep 28, 2024 #4 Don't remove those classes, just add another one, bigger-price in my example. Upvote 0 Downvote
VisEntities Active member Sep 28, 2024 #5 Code: <xf:if is="$resource.isExternalPurchasable()"> <span class="label label--primary label--smallest bigger-price">{$resource.price|currency($resource.currency)}</span> </xf:if> I did that, btw I use the marketplace addon Upvote 0 Downvote
Code: <xf:if is="$resource.isExternalPurchasable()"> <span class="label label--primary label--smallest bigger-price">{$resource.price|currency($resource.currency)}</span> </xf:if> I did that, btw I use the marketplace addon
VisEntities Active member Sep 28, 2024 #6 When I edit it in the inspection tool on chrome browser, it works, but not in templates Upvote 0 Downvote
D Deleted member 184953 Guest Sep 28, 2024 #7 VisEntities said: btw I use the marketplace addon Click to expand... Maybe that. Upvote 0 Downvote
D Deleted member 184953 Guest Sep 28, 2024 #8 You can try this: Less: .label--smallest { font-size: 120%; } But i don't know if this class is particular to resource prices or used elsewhere... Upvote 0 Downvote
You can try this: Less: .label--smallest { font-size: 120%; } But i don't know if this class is particular to resource prices or used elsewhere...
VisEntities Active member Sep 28, 2024 #9 Old Nick said: You can try this: Less: .label--smallest { font-size: 120%; } But i don't know if this class is particular to resource prices or used elsewhere... Click to expand... That worked haha, thanks! Upvote 0 Downvote
Old Nick said: You can try this: Less: .label--smallest { font-size: 120%; } But i don't know if this class is particular to resource prices or used elsewhere... Click to expand... That worked haha, thanks!
VisEntities Active member Sep 28, 2024 #10 Only problem is that it affects other elements, but at least something Upvote 0 Downvote
D Deleted member 184953 Guest Sep 28, 2024 #11 Old Nick said: But i don't know if this class is particular to resource prices or used elsewhere... Click to expand... Try this instead: Less: [data-template="xfrm_category_view"], [data-template="xfrm_overview"] { .label--smallest { font-size: 120%; } } Upvote 0 Downvote
Old Nick said: But i don't know if this class is particular to resource prices or used elsewhere... Click to expand... Try this instead: Less: [data-template="xfrm_category_view"], [data-template="xfrm_overview"] { .label--smallest { font-size: 120%; } }
BassMan Well-known member Sep 28, 2024 #13 What about adding this to extra-less: Less: [data-template="xfrm_overview"] .structItem-title .label { font-size: 14px; } Upvote 0 Downvote
What about adding this to extra-less: Less: [data-template="xfrm_overview"] .structItem-title .label { font-size: 14px; }
VisEntities Active member Sep 28, 2024 #14 BassMan said: What about adding this to extra-less: Less: [data-template="xfrm_overview"] .structItem-title .label { font-size: 14px; } Click to expand... Just that? Do I also edit something here <span class="label label--primary label--smallest">{$resource.price|currency($resource.currency)}</span> Upvote 0 Downvote
BassMan said: What about adding this to extra-less: Less: [data-template="xfrm_overview"] .structItem-title .label { font-size: 14px; } Click to expand... Just that? Do I also edit something here <span class="label label--primary label--smallest">{$resource.price|currency($resource.currency)}</span>
BassMan Well-known member Sep 28, 2024 #15 VisEntities said: Do I also edit something here <span class="label label--primary label--smallest">{$resource.price|currency($resource.currency)}</span> Click to expand... No. Upvote 0 Downvote
VisEntities said: Do I also edit something here <span class="label label--primary label--smallest">{$resource.price|currency($resource.currency)}</span> Click to expand... No.
BassMan Well-known member Sep 28, 2024 #17 Hmm, it works on my test site perfectly: Upvote 0 Downvote
VisEntities Active member Sep 28, 2024 #18 Could it be because I'm also using the marketplace addon Upvote 0 Downvote
VisEntities Active member Sep 28, 2024 #20 BassMan said: Plausible. Any way to see it live? Click to expand... The category where I'm testing the paid resource on is private sadly Upvote 0 Downvote
BassMan said: Plausible. Any way to see it live? Click to expand... The category where I'm testing the paid resource on is private sadly