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

XF 1.4 How to highlight "Account Upgrades"?

Discussion in 'Styling and Customization Questions' started by clove28, Feb 26, 2015.

  1. clove28

    clove28 Active Member

    Hi everyone,

    As the title says, how can I put background color for "Account Upgrades"?

    highlight.PNG
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can't target the link using CSS as it doesn't have a unique ID, so you will have to edit the navigation_visitor_tab template and you can use inline styling or apply a class.

    Code:
    <xen:if is="{$xenCache.userUpgradeCount}"><li><a style="background-color: orange" href="{xen:link account/upgrades}">{xen:phrase account_upgrades}</a></li></xen:if>
    upload_2015-2-26_19-36-0.png
     
    clove28 and Amaury like this.
  3. Amaury

    Amaury Well-Known Member

    Oops. Thought that was the /account page.

    Will delete my post to prevent confusion.
     
  4. clove28

    clove28 Active Member

    Thanks Brogan & Maru! That worked! ;)
     

Share This Page