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

Wordpress: Responsive window width and height

Post by VArdiyani » Tue Jul 04, 2017 12:55 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: 9446
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Wordpress: Responsive window width and height

Post by Hopki » Tue Jul 04, 2017 4:54 pm

Hi,
Normally the height is handled by the responsive theme.
Other than this we do not change the height of the player.
Regards,
Hopki

VArdiyani
Posts: 3
Joined: Wed Oct 05, 2016 3:44 pm

Re: Wordpress: Responsive window width and height

Post by VArdiyani » Wed Jul 05, 2017 3:15 am

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: 2521
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Re: Wordpress: Responsive window width and height

Post by thomas » Thu Jul 06, 2017 12:17 pm

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

Who is online

Users browsing this forum: No registered users and 5 guests