XF 2.0 Need some styling help

0ptima

Well-known member
In the thread_list_macros template I am displaying a couple of custom thread fields and need some help on how to make it look better.

I have added the following

191431

Which shows up like this

191432

What can be done to the following line to make it look more pleasing? Thanks!

Price: {$thread.custom_fields.price}
 
Maybe you can do it like this (more discrete):

Code:
            <ul class="structItem-parts">
                <li class="pairs pairs--justified structItem-minor"><xf:if is="{$thread.custom_fields.price}">Price: {$thread.custom_fields.price}</xf:if><xf:if is="{$thread.custom_fields.location}"> | Location: {$thread.custom_fields.location}</xf:if></li>
            </ul>


191453
 
Or, even better...

AFTER this code:
HTML:
                            <li><a href="{{ link('forums', $thread.Forum) }}">{$thread.Forum.title}</a></li>
                        </xf:if>


add this one:
HTML:
                        <xf:if is="{$thread.custom_fields.price}"><li class="structItem-minor">Price: {$thread.custom_fields.price}</li></xf:if>
                        <xf:if is="{$thread.custom_fields.location}"><li style="color: #8c8c8c">Location: {$thread.custom_fields.location}</li></xf:if>



191456
 
Back
Top Bottom