-
AuthorPosts
-
dcross02 Friend
dcross02
- Join date:
- December 2010
- Posts:
- 55
- Downloads:
- 43
- Uploads:
- 10
- Thanks:
- 10
- Thanked:
- 1 times in 1 posts
July 28, 2015 at 12:34 am #640263I want all the categories to show instead of having the drop-down arrow the user must click to see the rest of the categories.
Attached Image 01: Shows the default.
Attached Image 02: Shows how I want it to look when they come the page.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 28, 2015 at 5:01 am #645096This way will help you to do that
Open templates/ja_directory/html/mod_k2_tools/customcategories.php file
find and change
if (($option == 'com_k2') && ($view == 'itemlist') && ($catid == $row->id))
{
$liClass = 'activeCategory';
if ($i >= 4) {
$liClass .= 'collapse';
}
}
else
{
$liClass = '';if ($i >= 4) {
$liClass .= 'collapse';
}
}
to
if (($option == 'com_k2') && ($view == 'itemlist') && ($catid == $row->id))
{
$liClass = 'activeCategory';
if ($i >= 4) {
$liClass .= 'collapse';
}
}
else
{
$liClass = '';if ($i >= 4) {
$liClass .= 'collapse in';
}
}and find and remove all script below
<script type="text/javascript">
(function($){
$(document).ready(function(){
$( "#arrow-down" ).click(function() {
if ($('.k2CategoriesListBlock .collapse.in').length) {
$('.k2CategoriesListBlock .collapse.in').removeClass('in');
} else {
$('.k2CategoriesListBlock .collapse').addClass('in');
}if($( "#arrow-down.arrow-down" ).length) {
$( "#arrow-down").removeClass('arrow-down');
$( "#arrow-down").addClass('arrow-up');
} else {
$( "#arrow-down").addClass('arrow-down');
$( "#arrow-down").removeClass('arrow-up');
}
});
});
})(jQuery);
</script>
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 28, 2015 at 5:01 am #743721This way will help you to do that
Open templates/ja_directory/html/mod_k2_tools/customcategories.php file
find and change
if (($option == 'com_k2') && ($view == 'itemlist') && ($catid == $row->id))
{
$liClass = 'activeCategory';
if ($i >= 4) {
$liClass .= 'collapse';
}
}
else
{
$liClass = '';if ($i >= 4) {
$liClass .= 'collapse';
}
}
to
if (($option == 'com_k2') && ($view == 'itemlist') && ($catid == $row->id))
{
$liClass = 'activeCategory';
if ($i >= 4) {
$liClass .= 'collapse';
}
}
else
{
$liClass = '';if ($i >= 4) {
$liClass .= 'collapse in';
}
}and find and remove all script below
<script type="text/javascript">
(function($){
$(document).ready(function(){
$( "#arrow-down" ).click(function() {
if ($('.k2CategoriesListBlock .collapse.in').length) {
$('.k2CategoriesListBlock .collapse.in').removeClass('in');
} else {
$('.k2CategoriesListBlock .collapse').addClass('in');
}if($( "#arrow-down.arrow-down" ).length) {
$( "#arrow-down").removeClass('arrow-down');
$( "#arrow-down").addClass('arrow-up');
} else {
$( "#arrow-down").addClass('arrow-down');
$( "#arrow-down").removeClass('arrow-up');
}
});
});
})(jQuery);
</script>
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by Ninja Lead 9 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum