1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remove labels for extra member info in Avatar block

Discussion in 'Styling and Customization Questions' started by craigiri, Apr 14, 2012.

  1. craigiri

    craigiri Well-Known Member

    In order to save vertical space, I'd like to remove the extra lines.....or in some cases, put the label on the same line as the info.....
    Example - the below would read:
    since: Nov. 18, 2005 (or, better yet, since 11/18/2005)
    18,600 posts
    Northern Virginia (no label needed)

    Screen Shot 2012-04-14 at 8.47.48 AM.png
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can edit this template:

    Admin CP -> Appearance -> Templates -> message_user_info

    For example, remove the red code to remove the "Location" label:

    				<xen:if is="@messageShowLocation AND {$user.location}">
    					<dl class="pairsInline">
    						<dt>{xen:phrase location}:</dt>
    						<dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location, '-'}'}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:string censor, $user.location}</a></dd>
    To remove the line breaks you can use CSS:

    Admin CP -> Appearance -> Templates -> EXTRA.css

    Add this code:

    .messageUserInfo .pairsInline dt,
    .messageUserInfo .pairsInline dd
    	display: inline !important;
    Klaudius and ArnyVee like this.
  3. craigiri

    craigiri Well-Known Member

    Oh, nice - thanks Jake......

Share This Page