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

XF 1.5 removing sidebar settings from user account e.g. contact details

HannahKang

Active member
#1
I need to remove certain settings from the user account page because We will be linking accounts. How would I disable or hide selections like contact details or two step verification?







Screenshot_80.jpg
 

Amaury

Well-known member
#2
Edit the account_wrapper template and comment out or remove the relevant pieces of code. For example:

Code:
<xen:comment>
<li><a
                        class="{xen:if "{$selectedKey} == 'account/contactDetails'", 'secondaryContent', 'primaryContent'}"
                        href="{xen:link account/contact-details}">{xen:phrase contact_details}</a></li>
</xen:comment>