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

HannahKang

Active member
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.webp
 
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>
 
Back
Top Bottom