XF 1.4 Style change through a link/button


Active member
I want to make a button which when clicked changes the style to a particular style, just like when a style is clicked in the Style Chooser.

Problem is, where should the link go? The URL I pick up from the Style Chooser is a dynamic URL with a xfToken parameter that's dynamically generated, and without the xfToken it doesn't work for signed in users. The style chooser menu opens in a new page if I use the link without the xfToken URL parameter.

What URL should I place in the link that triggers a style change, and works for all users? Or if there's any other method please let me know.

Last edited: