• The switcher button redirect to home url. It’s annoying and unnecessary.

    My suggestion:
    any-mobile-theme-switcher.php line 100

    if ($amts_shown_theme){
    		$return = '<a rel="external" data-ajax="false" href="?'.$amts_force_param.'=desktop" class="am-switch-btn godesktop">'.get_option('desktop_view_theme_link_text').'</a>';
    	} else {
    		if ((!empty($amts_status)) || ($desktopSwitchLink == 'yes')){
    			$return = '<a href="?'.$amts_force_param.'=mobile" class="am-switch-btn gomobile">'.get_option('mobile_view_theme_link_text').'</a>';
    		}
    	}

    I just cut out home url from the link href.

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

  • The topic ‘Suggestion for switcher button link’ is closed to new replies.