Mobile Layout is working
-
I’ve worked on enabling the mobile layout for all mobile devices.
I got a simple solution, that works for me:Add the following Code:
<?php if (wp_is_mobile()) : ?>
layoutType: models.LayoutType.MobilePortrait,
<?php endif; ?>to the embed configuration in the “class-power-bi-shortcodes.php” after (Line 141 in Version 1.0.2):
settings: {
filterPaneEnabled: <?php echo ($filter_pane ? ‘true’: ‘false’); ?>,
I’m not a wordpress developer, so i don’t know if it is done properly. But it works for me 🙂
Restrictions:
– Mobile Users will become the Portrait View (Lanscape is ignored)
– Reports must have a phone layout
The topic ‘Mobile Layout is working’ is closed to new replies.