inherit
128803
0
Apr 16, 2023 23:54:15 GMT -8
Ty
200
July 2008
ty5550
|
Post by Ty on Mar 23, 2013 20:51:13 GMT -8
So on my site I have 3 custom fields, all of which show up on the mini-profile like I want. I'm trying to style the way they look and appear on the mini-profile. There is only one problem and that is the code in which the custom fields are called into the mini-profile:
{foreach $[user.mini_custom_field]} $[user.mini_custom_field.name]: $[user.mini_custom_field.value] {/foreach}
Through this method I can only give each custom field the same style and appearance. Is there a way to sort of separate them or target each individual custom field in order to apply specific style and coding to it?
|
|
inherit
58740
0
Aug 20, 2024 7:29:21 GMT -8
®i©hie
I'm not very active here anymore thanks to my full-time job. - 12/27/23
14,036
September 2005
soe
|
Post by ®i©hie on Mar 24, 2013 10:38:03 GMT -8
depends on what you want to style, but this should work: {foreach $[user.mini_custom_field]} <span class="$[user.mini_custom_field.name]">$[user.mini_custom_field.name]: </span> $[user.mini_custom_field.value] {/foreach} now each name now has a class to match it's name. now add the following to your theme's CSS: . FIELDNAME{ however you want to style it } . FIELDNAME2{ however you want to style it } ETC., ETC. any questions lmk.
|
|