- The headings like Filter:/Sort:/Sort order: can be changed in the en-GB.tpl_themeXXXX.ini file located in the \language\en-GB folder (en-GB.tpl_themeXXXX.ini in \themeXXXX\language\en-GB folder) on your FTP where it says
;----------------------------------------
GALLERY_FILTER="Filter:"
GALLERY_SORT="Sort:"
GALLERY_VIEWS="Views:"
GALLERY_SORT_DIRECTION="Sort order:"
- You can remove the Filter part and change the word All in the category.php file located in the \templates\themeXXXX\html\com_k2\templates\portfolio folder on your FTP (lines 69-79) where it says
<div id="isotopeOptions"><br>
<?php if(!empty($tags)) ?><br>
<span><strong><?php echo JText::_('GALLERY_FILTER'); ?></strong></span><br>
<ul id="filters" class="option-set"><br>
<li><a href="#" data-filter="*" class="selected">All</a></li><br>
<?php<br>
foreach ($tags as $tag) <br>
echo "<li><a href='#' data-filter='.".strtolower(str_replace(" ","_",$tag))."'>".$tag."</a></li>";<br>
<br>
?><br>
</ul><br>
<?php ?><br>
The listed filters can be managed through the admin panel of your Joomla site under the menus Components -> K2 -> Tags.
- You can remove the Sort order part and change the words title, date, views in the same category.php file where it says(lines 81-89):
<div class="clr"></div><p></p>
<?php if(!empty($catItems) || !empty($catItemTitles) || !empty($catItemDate)): ?><br>
<span><strong><?php echo JText::_('GALLERY_SORT'); ?></strong></span><br>
<ul id="sort" data-option-key="sortBy" class="option-set"><br>
<li><a href="#sortBy=#title" data-option-value="title" class="selected">title</a></li><br>
<li><a href="#sortBy=#date" data-option-value="date">date</a></li><br>
<li><a href="#sortBy=#views" data-option-value="views">views</a></li><br>
</ul> <br>
- You can remove the Sort part and change the words sort ascending/sort descending in the same category.php file where it says(lines 91-98):
<div class="clr"></div><p></p>
<span><strong><?php echo JText::_('GALLERY_SORT_DIRECTION'); ?></strong></span><br>
<ul id="sort_direction" data-option-key="sortAscending" class="option-set"><br>
<li><a href="#sortAscending=true" data-option-value="true" class="selected">sort ascending</a></li><br>
<li><a href="#sortAscending=false" data-option-value="false">sort descending</a></li><br>
</ul>
How to edit/remove gallery filter/sort options in joomla
No comments:
Post a Comment