Android Lollipop features (quite nice! – unfortunately neglected by WPtouch)
-
This isn’t really a support request but I thought other WPtouch users might be interested.
Also, maybe a little bit of criticism and maybe a suggest how to improve WPtouch.To me it seems a little bit like WPtouch developers somehow neglect Android a bit in favor of iOS. Why am I saying that?
Android Lollipop was released when? Quite a while ago, right !? Almost every new phone now sold, runs on Lollipo and it has some really cool features. However, I haven’t found a “regular” way to implement those features in WPtouch without altering the source code a little bit.What’s new in Lollipop is that you can apply a color theme and highres icons to Chrome (Firefox partially makes use of it as well).
Here is an example without theme color applied: no theme
And here with the theme color: with theme (check out the address bar)
In case of my example it’s just dark, but you can choose any color that suits your webpage.And last but not least here one more example in Web-App-Mode/add-to-homescreen like on iOS (although you can implement way more and better icons in Android!): web app mode
Documentation about it can be found here: Support for theme-color in Chrome 39 for Android and here: Add to Homescreen
Currently WPtouch only seems to support iOS properly.
The easiest way to implement the color theme support for Android (change the color of the address bar) is a simple hack: Just add the Meta Tag <meta name=”theme-color” content=”#XXXXXX”> (XXXXXX = colorcode) to the file: /wp-content/plugins/wptouch-pro-3/themes/foundation/default/header.php (right below <head>) – Be aware that once you update WPtouch you have to add it again.
Additionally one can also add further meta tags for the Web-App-Mode and icon-links (read the documentation above).
Another way to do this could be the use of a third party plugin to add meta tags, but I have no clue then how to make sure the tags are only added to the mobile pages (shouldn’t be a real issue though if the appear on the regular website as well).
As a rather simple improvement for WPtouch I would like to suggest to add another field to the admin area, similar to the “Custom Code” field (“Core Settings”) which allows adding code to the footer it would be also nice to be able to add or load code in the head. (Maybe this is already possible somehow without a hack, and I am just not aware of it?)
- The topic ‘Android Lollipop features (quite nice! – unfortunately neglected by WPtouch)’ is closed to new replies.