You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, January 12th 2017, 1:00pm

Hide VR button/icon on desktop

Hello everyone,
I didn't find any information about that (seems strange since is a simple question) on the forum.
Please forgive me if is a my mistake.

I just want to know if there is a way to hide the VR button/icon when i'm not on a mobile device.

Is that possible?

Thank you in advance.

Alexey Tkachenko

Professional

Posts: 740

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Thursday, January 12th 2017, 1:42pm

Hi)

Open 'vtourskin.xml'.
Find action called 'skin_arrange_buttons"
Replace this line

Source code

1
calc(show_vrbutton,   webvr.isavailable == true);
with the following one:

Source code

1
calc(show_vrbutton,   webvr.isavailable == true AND device.mobile);



It shoudl do what you need.
Regards,

Alexey

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

3

Thursday, January 12th 2017, 4:46pm

Set fake VR on Desktop and tablet by simple settings: http://krpano.com/plugins/webvr/#mobilevr_fake_support

4

Thursday, January 12th 2017, 6:05pm

Thank you Alexey!
Works like a charm! *thumbsup*