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 = ‘http://yoursite.mdemo.me/'</script>
<script type=”text/javascript” src=”http://files.mobilebuilder.net/scripts/js-redirector.1.0.0.js”></script>
You need to copy and paste it right below the <head> tag: