简体   繁体   中英

Create a mobile site for already existing Wordpress site

I want to build a mobile website for an already existing Wordpress site. I prefer to redirect the users to the mobile site automatically if the user is browsing from a mobile device. I will also need to change the contents of the pages regularly and may have to add more pages over time. But I do not want to create two different copies of the same page for desktop and mobile.

Please suggest the best option to go forward with this situation.

Thanks.

I think you would pretty much have to design your theme to dynamically change what it's doing as needed. This might just be a matter of activating the right style sheets or it might be more complicated.

There's a good book on this subject you might want to check out.

http://www.amazon.com/Professional-Development-WordPress-Programmer-ebook/dp/B004T6RKT0/ref=dp_kinw_strp_1?ie=UTF8&m=AG56TWVU5XWC2

You want two sites with the same content, but you don't want to enter the content twice, and for some reason you don't want the site to be responsive. That makes things difficult.

Theoretically you could have both sites taking their information from the same database but in reality it just makes so much more sense to build a responsive site.

In any case, if you must have two sites, you can start by detecting mobile devices with this PHP class .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM