Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • dcross02 Friend
    #640263

    I 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 Moderator
    #645096

    This 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 Moderator
    #743721

    This 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>

Viewing 3 posts - 1 through 3 (of 3 total)

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