- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Joomla 3.x. How to change a default gallery layout
October 16, 2014
Hello, this tutorial shows how to change default gallery layout in Joomla templates..
Joomla 3.x. How to change default gallery layout
In some cases you may need to change default gallery layout on your website. In order to do this, you should follow these steps:
-
Open templates\themeXXXX\html\com_content\category\gallery.php file.
-
In “gallery.php” file you should find the following code:
-
Swap items around, move class active to the list item to get the following code:
-
In script initialization, on line 222 change:
layoutMode: 'grid' to layoutMode: 'list'
-
On line 162 change:
- category_title))); ?>" data-date="item->publish_up, 'YmdHis'); ?>" data-name="item->title; ?>" data-popularity="item->hits; ?>">
to
- category_title))); ?>" data-date="item->publish_up, 'YmdHis'); ?>" data-name="item->title; ?>" data-popularity="item->hits; ?>">
Now default gallery layout is changed.
Feel free to check the detailed video tutorial below: