How to change the position

Professional Joomla restaurant template comes with a custom animated modules and advanced typography elements.
GK User
Mon Feb 11, 2013 10:51 pm
Hey,
I have a question how to change the position of image gallery in my site...
Now Image Gallery is at the bottom in the site and I want to change it after main picture of k2 topic.
Link to my site in one topic to see: http://orientplus.com/touch_new_worlds/ ... 4-marmaris
User avatar
Senior Boarder

GK User
Tue Feb 12, 2013 12:03 am
Hi, You want to add gallery module into K2 article or insert K2 gallery into K2 article ?
If second answer you have to modify (php/html) file from overwriten K2 template.
Because this part of code, K2 gallery default is on the bottom of article.

Try to edit this file: gk_restaurant\html\com_k2\templates\default\item.php

Code: Select all
<?php if($params->get('itemImageGallery') && !empty($this->item->gallery)): ?>
            <div class="itemImageGallery" id="itemImageGalleryAnchor">
                  <h3><?php echo JText::_('K2_IMAGE_GALLERY'); ?></h3>
                  <?php echo $this->item->gallery; ?>
            </div>
            <?php endif; ?>


This is gallery code, so cut and paste in the top of file.
User avatar
Platinum Boarder

GK User
Tue Feb 12, 2013 5:25 pm
Yes man that's it... I need to find that code and move up in the item.php file and now the gallery is the second in the page not the last....
Thank You Again!
User avatar
Senior Boarder


cron