Wordpress: Responsive window width and height

Everything concerning the Wordpress/Joomla/Drupal plugins
Post Reply
VArdiyani
Posts: 3
Joined: Wed Oct 05, 2016 3:44 pm

Hello,

We used the wordpress plugin to embed ggpkg files as shortcode and had the width set at 100% and width at 576 in GGPKG Import Settings player view, resulting in a landscape view, which is correct.

However, when the it goes down to mobile sizes it becomes portrait, due to the fixed height - which isn't what we want . We would like to dynamically set the height when it goes to mobile view so the aspect ratio remains at landscape - how do we achieve that?

Thank you all so much!
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Normally the height is handled by the responsive theme.
Other than this we do not change the height of the player.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
VArdiyani
Posts: 3
Joined: Wed Oct 05, 2016 3:44 pm

Hi, because we have a custom developed theme and since we are trying to handle the shortcode generated by the plugin , should the developers use javascript to affect the actual html, CSS codes generated by the gnome shortcode as the browser size change?

Since in a responsive theme, we either handle it with CSS or Javascript, but they have to be aware of what element to handle - is this how it is supposed to be done?
User avatar
thomas
Chief Gnome
Posts: 2611
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

The player always follow the top "container" div, so you can change the size with either CSS or Javascript and the panorama should follow. You can just leave out the width/height values in the plugin and control everything yourself.
MfG, Thomas
Post Reply