I am having trouble to redirect the ipad to the mobile web.
I am using piwigo 2.4.3 and everything is working ok , but when I enter the site with the Ipad or a tablet
the size I get is the regular website but i will like it to go directly to the mobile website. can someone tell me how redirect the Ipad automatically to the piwigo website.
I still want to use the regular piwigo from any computer but when access from an Ipad i wanted it to go to the mobile site.
Offline
Create a personal plugin (in LocalFiles Editor, 5th tab), and add this code:
add_event_handler('loading_lang', 'mobile_theme_for_tablet'); function mobile_theme_for_tablet() { if (get_device() == 'tablet') { pwg_set_session_var('device', 'mobile'); } }
Then activate your personal plugin.
Offline
Thanks, worked for me.
Another question: On my iPhone i switched from mobile theme to standard theme. How can i easily switch back? I mean without deleteing cache or something.
Offline
Thanks
TheChief wrote:
Thanks, worked for me.
Another question: On my iPhone i switched from mobile theme to standard theme. How can i easily switch back? I mean without deleteing cache or something.
Which standard theme do you use?
You should have a link to switch in the footer.
Offline
I use the stripped theme. How should the link look like?
Offline
I have tried to create a plugin but it did not work for me. My default theme is Stripped. It switches to the Mobile theme by itself when I use iPhone, but stays as Stripped with the iPad.
Offline
Now, I have also tried to install the Theme Switch plug-in. In my theme configuration I do have only 2 themes activated, the Stripped and the Smart Pocket.
But on the visitors end when I push the "Interface" link I can see only the Stripped. The Smart Pocket won't show.
Offline
faqvideo wrote:
I have tried to create a plugin but it did not work for me. My default theme is Stripped. It switches to the Mobile theme by itself when I use iPhone, but stays as Stripped with the iPad.
Did you enable/activate the Personal Plugin ?
faqvideo wrote:
Now, I have also tried to install the Theme Switch plug-in. In my theme configuration I do have only 2 themes activated, the Stripped and the Smart Pocket.
But on the visitors end when I push the "Interface" link I can see only the Stripped. The Smart Pocket won't show.
This is normal
Offline
faqvideo wrote:
I have tried to create a plugin but it did not work for me. My default theme is Stripped. It switches to the Mobile theme by itself when I use iPhone, but stays as Stripped with the iPad.
Did you enable/activate the Personal Plugin ?
Yes, I have activated it but to no result. Mystery???
faqvideo wrote:
Now, I have also tried to install the Theme Switch plug-in. In my theme configuration I do have only 2 themes activated, the Stripped and the Smart Pocket.
But on the visitors end when I push the "Interface" link I can see only the Stripped. The Smart Pocket won't show.
This is normal
Why is it normal? One should assume if there are two themes activated on the Admin site, they should show on the visitor side, no?
Offline