How Do I Install My Mobile Redirect on My WordPress Site?

Published on
April 3, 2015
Contributors
Megan Malone
megan@vicimediainc.com

Megan Malone is a Founding Partner with Vici, and leads our Operations division.  Megan has both a radio and digital marketing background working for the Philadelphia Eagles, Beasley Broadcast Group, and Cox Media Group. In her career she has helped plan and implement thousands of digital media campaigns.   She holds a certification from Disney Institute’s People Management, Google Analytics, and was awarded the top 10 advertisers in Louisville from the American Advertisers Federation.  In her free time Megan is relaxing in Phoenix, Arizona with her husband Dave and toddler Zoey.

Subscribe to our newsletter
Read about our privacy policy.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Your mobile optimized site is complete! You’ve beat the April 21 Google deadline and your mobile site is ready to ensure your customers the most user-friendly website experience of their lives, right? Not so fast. Now it is time to make sure your site visitors are properly redirected from your desktop site to the mobile optimized site.Redirect scripts are installed in a desktop site and tells the site to automatically send customers visiting your site from a mobile phone to the mobile website instead of the desktop site. Mobile redirects are installed on your homepage, and every other page that you would like to redirect to the mobile version.The scripts are about 2 lines long and will typically resemble this, note that this is Vici’s specific redirect script and cannot be used for any site:<script src="http://static.mobilewebsiteserver.com/redirect.js" type="text/javascript"></script><script type="text/javascript">Mobile_redirect("http://mobile.vicimediainc.com");</script>Depending on where your desktop site is hosted, redirect directions can vary slightly. However, the general steps of pasting the code after the <head> tag are all the same. Here are the steps to install a mobile redirect on Wordpress:First, log in to the dashboard or administrator section of the site.Locate the “Editor” section of the site.

step 2

Then, locate the Templates header, likely on the right hand side of your screen.

step 3

Locate the Header button, click it, and find the <head> tag in the template. You can click CTRL+F or search "Find" on your computer and type in <head> to locate it quickly.

step 4

Copy and paste the redirect code directly after the <head> tag.

step 5

Save or update the changes you made to the template file.

step 6

Check out your new and improved mobile optimized site! You should now be redirected to the mobile site when you search for/visit your desktop site on a mobile device.

Capture

Keep in mind that any time a change is made to the HTML script of your site, it can take up to 24 hours to adjust. So do not panic if you cannot see your savvy new mobile site right away! If 24 hours comes and goes and your mobile site is still not visible, double check the placement of your redirect code and make sure all changes made in the template are saved.

Related Posts

Tips, guides, industry best practices, and news.
Category Link
What Digital Trends Should I Use In 2025?
We wanted to dig in and give you some insights into digital marketing trends that businesses should consider in 2025, focusing on strategies such as social media video, SEO (and how AI now impacts it and zero-click searches), and OTT (over-the-top) advertising.
Greg Swiszcz
May 14, 2025
Category Link
How Connected TV Caters to Holiday Shopping for Eager Consumers
The holiday shopping season is the Super Bowl of retail. Every brand, big or small, is vying for consumer attention, and traditional advertising methods just aren’t cutting it anymore. Enter Connected TV (CTV) and Over-The-Top (OTT) advertising, a game-changing strategy that allows brands to meet shoppers right where they are—on their favorite streaming platforms.
Allison Gibson
May 14, 2025
Category Link
How can I use Social Media Stories to promote my business?
Storytelling, one of society’s greatest tools in sharing the narrative that you want people to understand, has changed a lot since the days of fireside chats and Shakespearean stages. 
Greg Swiszcz
May 14, 2025