Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2017-09-12 13:56:09
- netgeezer
- Member
- Registered: 2017-09-01
- Posts: 19
Plugin for mobile version of site
I want mobile users of my site to get a mobile version of the site (ie. NOT 1 page with 2 stylesheets – upon detecting a mobile device, it has to redirect to m.site.com) – how do I do this?
Offline
Re: Plugin for mobile version of site
You can use an htaccess rule (see discussion here) or you could use the adi mobile plugin but you will think that you will need to do a lot of redirections.
I’m not sue why you need the subdomain. It will be another thing to maintain. I would go the responsive design as it is much easier. With the adi plugin you could have
<txp:adi_if_mobile>
<txp:css name="mobile">
<txp:else />
<txp:css name="default">
</txp:adi_if_mobile>
Although it is 2 css documents only the relevant one will load.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2017-09-14 13:03:55
- netgeezer
- Member
- Registered: 2017-09-01
- Posts: 19
Re: Plugin for mobile version of site
The reason is that I’m quite new to HTML and CSS, and I’m still trying to get the hang of – “One CSS for desktop, and another for mobile FOR THE SAME PAGE!!” – I’m not sure how that’s pulled off! :)
Offline
Re: Plugin for mobile version of site
Do check out the Responsive Design tutorials. It is not as difficult as you may initially think. Basically the elements of the page, tags like <div>
react differently when a smaller screen is detected.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2017-09-18 14:33:33
- netgeezer
- Member
- Registered: 2017-09-01
- Posts: 19
Re: Plugin for mobile version of site
Hey colak, thanks for all your help, bro :) (all the other threads too! :) )
Offline
Pages: 1