- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hi, I was wondering whether it's possible to either:
1. build a separate webpage for mobile optimization and link those specific webpages to just the mobile browser menu bar?
2. edit the layout of just the mobile version of the website.
Thanks,
David
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
I'm not sure if this is what you need, but you can redirect a specific page to another (mobile optimized) page by placing the following code in the header section of the page you want to redirect from:
<script>
var ua = navigator.userAgent;
if ((ua.match(/iPhone/i)) || (ua.match(/Android/i))) {
location.replace("mobileoptimizedpage.html");
}
</script>
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Hi @freehand
How do you just put that snippet of Code in 1 specific page? Doesn't the header code section is for all of the web pages (the whole website)?
Best,
David
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Hi @dwidjaja,
You can add header code to specific pages through "Pages > SEO Settings > HEADER CODE" – see attached screendump.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report