Title: Static button
Last modified: November 29, 2020

---

# Static button

 *  Resolved [Plamen Yanev](https://wordpress.org/support/users/pyanev/)
 * (@pyanev)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/static-button/)
 * Is there a way to add a static button / marker on the virtual tour. One that 
   stays in one place when rotating the photo? Regards

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Plamen Yanev](https://wordpress.org/support/users/pyanev/)
 * (@pyanev)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/static-button/#post-13753835)
 * Add something else you notice. In the “Civic” widget, apart from the HOME button
   not working, the “Start in the hide interface mode” option also has no effect.
   
   Regards
 *  Plugin Author [Avirtum](https://wordpress.org/support/users/avirtum/)
 * (@avirtum)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/static-button/#post-13774892)
 * Yes, it’s possible. We can use the js custom section and write some code. See
   example below.
 *     ```
       var instance = this,
       $ = jQuery;
   
       var $wrap = $('<div>').addClass('ipnrm-custom-wrap');
   
       for(var i=0;i<instance.config.scenes.length;i++) {
           var scene = instance.config.scenes[i];
           var $btn = $('<div>').addClass('ipnrm-custom-btn').text(scene.title).attr({'data-scene-id':scene.id});
           $wrap.append($btn);
       }
       instance.$container.append($wrap);
   
       //===============================================================
       // handlers
       //===============================================================
       $('body').on('click', '.ipnrm-custom-btn', function(e) {
           var pano = $('.ipanorama').ipanorama('instance');
           var sceneId = $(this).data('scene-id');
           pano.setScene({id:sceneId});
       });
   
       // set the button state to 'active'
       instance.dom.$canvas.on('ipanorama:scene-after-load', function(e) {
           var scene = e.originalEvent.data.scene;
           if(!scene) return;
   
           $wrap.find('.ipnrm-custom-btn.active').removeClass('active');
           $wrap.find('.ipnrm-custom-btn[data-scene-id="' + scene.cfg.id + '"]').addClass('active');
       });
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Static button’ is closed to new replies.

 * ![](https://ps.w.org/ipanorama-360-virtual-tour-builder-lite/assets/icon-256x256.
   png?rev=2139967)
 * [iPanorama 360 - Advanced Virtual Tour Builder](https://wordpress.org/plugins/ipanorama-360-virtual-tour-builder-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ipanorama-360-virtual-tour-builder-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ipanorama-360-virtual-tour-builder-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ipanorama-360-virtual-tour-builder-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ipanorama-360-virtual-tour-builder-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ipanorama-360-virtual-tour-builder-lite/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Avirtum](https://wordpress.org/support/users/avirtum/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/static-button/#post-13774892)
 * Status: resolved