XF 2.2 Is it possible to put a widget on a single profile page?

oO5 Dynasty

Well-known member
I was looking at adding a widget Html widget, that only showed up on my page. Can we single out profile pages, and is this function available.


XenForo moderator
Staff member
You can edit the template and wrap the widget code in a conditional statement targeting your user ID.

Actually, you may be able to do it with the built in widget display options - I would need to check if the profile page is an option.
If there is, you may be able to use $xf.user.user_id == 123 in the display option.

Where 123 is the ID of your profile.