• workworkwork

    (@workworkwork)


    Hi there,

    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.

    https://www.ads-software.com/extend/plugins/theme-switcher/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How can I remove the re-direct on Theme Switcher change?’ is closed to new replies.