[PRIVATE] Ticket #43847

Current Rating on this Ticket:
n/a
Average Response Speed:
21.9 Hours
  • Wist Laumann

    “disable fancybox on room pages”

    hi, quick question. can i disable the fancybox of the image gallery on room pages? i need only the slideshow without bigger images. thx for help! chris

    — Posted at 2:42 on April 5, 2013

  • Paul
    UXbarn

    Hi,

    Please open "single-rooms.php" file and at the line 25 you will see this code:

    <div class="half hover">
    				                    
    				                    <?php 
    				                    
                                            $image_desc = $room_image['description'];
                                            
                                            // For qTranslate function (only work if it is installed) 
                                            if (function_exists('qtrans_getLanguage')) {
                                                $lan = qtrans_getLanguage();
                                                $image_desc = qtrans_use( $lan, $image_desc, true );
                                            }   
                                        
                                        ?>
    				                    
    				                    <a href="<?php echo $room_image['image']; ?>" rel="room" class="image-box caption" title="<?php echo $image_desc; ?>">
    				                    <div class="photo">
    				                        <span class="text"><?php _e('View photo', 'uxbarn_lamoon'); ?><span class="anchor"></span></span>
    				                    </div>
    				                    <p><img src="<?php echo $room_image['image']; ?>" alt="<?php echo $image_desc; ?>" />
    				                    </p> </a>
    				                </div>

     

    Just change it to:

    <img src="<?php echo $room_image['image']; ?>" alt="<?php echo $image_desc; ?>" />

     

    Cheers,
    Paul

    — Posted at 2:42 on April 6, 2013

Updating...