Ryan’s Theme Switcher plugin removes the query string when it refreshes the page after a theme change (probably for good reasons) but I would like to stop it redirecting back to the index page.
My users will be merely changing their preferred layout for categories – grid vs. list – which is set via a child theme.
Lines 155 and 156 seem to be the culprit but I’m not 100% sure how to modify:
$redirect = remove_query_arg('wptheme'); wp_redirect($redirect);
Any help much appreciated.
- The topic ‘How can I remove the re-direct on Theme Switcher change?’ is closed to new replies.