How to add a mobile redirect to a WordPress website

To add a mobile redirect to a WordPress website, you need to edit the header.php file.  Usually you can find this file in your WordPress theme directory (for instance if your WordPress theme is “mynewtheme”, the header.php file is in /wp-content/themes/mynewtheme/  directory)

Then simply copy the redirect code (you can find the code on an account dashboard ->Redirect Info) and paste it at the very top of the HTML <head>

Here is a sample redirect code:

<script type=”text/javascript”>gMobileRedirectorTargetDefault = ‘’</script>

<script type=”text/javascript” src=””></script>

You need to copy and paste it right below the <head> tag:



Article is closed for comments.
Powered by Zendesk