XF 2.2 How to underline links to ToS and Privacy Policy in Register only

juliusborisov

New member
Hello! How can I underline the links only in this window? If I go Page Setup - Links - Underline, it will underline all links everywhere, which is not that comfortable. What would be the CSS code for that window only?underline register.png
 
Solution
Add this to the extra.less template:
Less:
[data-template="register_form"],
[data-xf-init="reg-form ajax-submit"]
{
    .iconic-label a
    {
        text-decoration: underline;
    }
}

That will underline links on the overlay and standalone page.

juliusborisov

New member
Sorry that I'm dumb. What should I be adding to that template in order for this to work?
My initial question presumed I have to add custom CSS to Page Setup - Links, this is why I got confused.
 

Brogan

XenForo moderator
Staff member
Add this to the extra.less template:
Less:
[data-template="register_form"],
[data-xf-init="reg-form ajax-submit"]
{
    .iconic-label a
    {
        text-decoration: underline;
    }
}

That will underline links on the overlay and standalone page.
 
Solution

Brogan

XenForo moderator
Staff member
This guide should help.

 
Top