
WordPress Mobile Pack in Opera Mobile (top) versus WebKit-based mobile phones (bottom)
There’s a minor incomaptibility between WordPress Mobile Pack and Opera Mobile. Opera Mobile is served a slightly pared-down version of the site (top), without gradients or a toggle-able comments section. WebKit-based browsers do.
If you’d like to support Opera Mobile or Opera Mini users, the following seems to do the trick.
Open wp-content/themes/mobile_pack_base/group_detection.php and within the group_detection()
function, change:
if (
strpos($user_agent, 'series60') !== false ||
strpos($user_agent, 'maemo') !== false ||
strpos($user_agent, 'webkit') !== false
)
to:
if (
strpos($user_agent, 'series60') !== false ||
strpos($user_agent, 'maemo') !== false ||
strpos($user_agent, 'webkit') !== false ||
strpos($user_agent, 'opera mobi') !== false
)
.
Keep in mind that if you do this, future upgrades to the plugin will wipe out your changes. But you should be backing up your plugins before upgrading them anyway .