New Landing How can we help? Themeforest Theme Support Joyn Problem with gallery category filter

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Joyn
  • #149280
    simonov-vlad
    Member
    Post count: 7

    The problem with the filter categories in the gallery if I do not choose a category to filter, it shows everything is fine, but if you select a category to filter it shows the URL instead of names.

    My options of gallery – http://i.gyazo.com/2304803c53d8635cd61074d8a44ac671.png
    My options of gallery category –http://i.gyazo.com/49e7aa92c6d7a6700c8b3bef00e32161.png
    My options of gallery widget – http://i.gyazo.com/15bcaf1b52040bf7627080ef2423763e.png
    How it displays – http://simonovvlad.ru/test/

    #149377
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste given below code at functions.php of child theme.

    function sf_portfolio_filter( $style = "basic", $parent_category = "" ) {
    
                $filter_output = $tax_terms = "";
    
                if ( $parent_category == "" || $parent_category == "All" ) {
                    $tax_terms = sf_get_category_list( 'portfolio-category', 1 );
                } else {
                    $tax_terms = sf_get_category_list( 'portfolio-category', 1, $parent_category );
                }
    
                $filter_output .= '<div class="filter-wrap clearfix">' . "\n";
                $filter_output .= '<ul class="post-filter-tabs filtering clearfix">' . "\n";
                $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">' . __( "Show all", "swiftframework" ) . '</span></a></li>' . "\n";
                foreach ( $tax_terms as $tax_term ) {
                    $term = get_term_by( 'slug', $tax_term, 'portfolio-category' );
                    if ( $term ) {
                        $filter_output .= '<li><a href="#" title="' . $term->name . '" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span></a></li>' . "\n";
                    } else {
                         $filter_output .= '<li><a href="#" title="' . $term->name . '" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span></a></li>' . "\n";
                    }
                }
                $filter_output .= '</ul></div>' . "\n";
    
                return $filter_output;
            }

    Thanks
    Mohammad

    #149521
    simonov-vlad
    Member
    Post count: 7

    1.We talked about the categories in the gallery, may be we need ‘gallery-category’ ?
    2.Still not working

    #149882
    simonov-vlad
    Member
    Post count: 7

    I wait for some solution to the problem or not?

    1.We talked about the categories in the gallery, may be we need ‘gallery-category’ ?
    2.Still not working

    #149926
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check.
    Thanks
    Mohammad

    #198415
    simonov-vlad
    Member
    Post count: 7

    I have the same issue on another my site but now with gallery categories
    how it looks: http://kovka-ug.ru/katalog/kovanye-vorota-kalitki-zabory/
    gallery categories page in admin: http://prntscr.com/7xvagh
    How to display cirylic names?

    #198492
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I need wordpress admin login detail to check and resolve the issue.
    Thanks
    Mohammad

    #198493
    simonov-vlad
    Member
    Post count: 7
    This reply has been marked as private.
    #198539
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I tried to edit files but dont get any changes. Are you using any cache mechanism?
    Thanks
    Mohammad

    #198543
    simonov-vlad
    Member
    Post count: 7

    Even if I used I do not know about it. May be it has conflict with other plugins? By the way , this problem arose after I updated the JOYN and swift framework before everything worked as it should.

    #198576
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check. I have pasted given below code at functions.php file.

    
    function sf_gallery_filter( $style = "basic", $parent_category = "" ) {
    
                $filter_output = $tax_terms = "";
    
                if ( $parent_category == "" || $parent_category == "All" ) {
                    $tax_terms = sf_get_category_list( 'gallery-category', 1, '', true );
                } else {
                    $tax_terms = sf_get_category_list( 'gallery-category', 1, $parent_category, true );
                }
    
                $filter_output .= '<div class="filter-wrap clearfix">' . "\n";
                $filter_output .= '<ul class="post-filter-tabs filtering clearfix">' . "\n";
                $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">' . __( "Show all", "swiftframework" ) . '</span></a></li>' . "\n";
                foreach ( $tax_terms as $tax_term ) {
                    $term = get_term_by( 'name', $tax_term, 'gallery-category' );
                    if ( $term ) {
                        $filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span></a></li>' . "\n";
                    } else {
                        $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span></a></li>' . "\n";
                    }
                }
                $filter_output .= '</ul></div>' . "\n";
    
                return $filter_output;
            }

    Thanks
    Mohammad

    #198579
    simonov-vlad
    Member
    Post count: 7

    Thank you for support, it was really quick=)

    #198581
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register