Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #55592
    treyvancamp
    Member
    Post count: 2

    Hello,

    The following URL link was super helpful: http://support.swiftideas.net/knowledgebase/replace-blog-aux-tags-with-authors/#comment-133

    Thank you. I was wondering if you could provide the code to where it replaced the categories and not the tags. I would like to keep: tags, authors, archive.

    Thank you.

    #55698
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Try this code to see if it works. Place it in the childtheme functions.php file to avoid problems in future updates.

    function sf_blog_aux($width) {
            
            $blog_aux_output = "";
            $options = get_option('sf_dante_options');
            $filter_wrap_bg = $options['filter_wrap_bg'];
            $rss_feed_url = $options['rss_feed_url'];
            
             		
           $tags_list = wp_tag_cloud('smallest=12&largest=12&unit=px&format=list&number=50&orderby=name&echo=0');
            $archive_list =  wp_get_archives('type=monthly&limit=12&echo=0');
            $author_list = wp_list_authors('echo=0');
            
            $blog_aux_output .= '<div class="blog-aux-wrap row">'; // open .blog-aux-wrap
            $blog_aux_output .= '<ul class="blog-aux-options bar-styling '.$width.'">'; // open .blog-aux-options
            
            // TAGS
                $blog_aux_output .= '<li><a href="#" class="blog-slideout-trigger" data-aux="tags"><i class="ss-tag"></i>'.__("Tags", "swiftframework").'</a>';
                
                // SEARCH FORM
                $blog_aux_output .= '<li class="search"><form method="get" class="search-form" action="'. home_url().'/">';
                $blog_aux_output .= '<input type="text" placeholder="'. __("Search", "swiftframework") .'" name="s" />';
                $blog_aux_output .= '</form></li>';
    
            // AUTHORS
            $blog_aux_output .= '<li><a href="#" class="blog-slideout-trigger" data-aux="authors"><i class="ss-user"></i>'.__("Authors", "swiftframework").'</a>';
            
            // SEARCH FORM
            $blog_aux_output .= '<li class="search"><form method="get" class="search-form" action="'. home_url().'/">';
            $blog_aux_output .= '<input type="text" placeholder="'. __("Search", "swiftframework") .'" name="s" />';
            $blog_aux_output .= '</form></li>';
            
            // ARCHIVES
            $blog_aux_output .= '<li><a href="#" class="blog-slideout-trigger" data-aux="archives"><i class="ss-storagebox"></i>'.__("Archives", "swiftframework").'</a>';
            
            // RSS LINK
            if ($rss_feed_url != "") {
            $blog_aux_output .= '<li><a href="'.$rss_feed_url.'" class="rss-link" target="_blank"><i class="fa-rss"></i>'.__("RSS", "swiftframework").'</a>';
            }
            
            $blog_aux_output .= '</ul>'; // close .blog-aux-options
            $blog_aux_output .= '</div>'; // close .blog-aux-wrap
            
            $blog_aux_output .= '<div class="filter-wrap slideout-filter blog-filter-wrap row clearfix">'; // open .blog-filter-wrap
            $blog_aux_output .= '<div class="filter-slide-wrap col-sm-12 alt-bg '.$filter_wrap_bg.'">';
            
            
            if ($tags_list != '') {  
                    $blog_aux_output .= '<ul class="aux-list aux-tags row clearfix">'.$tags_list.'</ul>';  
                }   
    
            if ($author_list != '') {
                $blog_aux_output .= '<ul class="aux-list aux-authors row clearfix">'.$author_list.'</ul>';
            }
            
            if ($archive_list != '') {  
                $blog_aux_output .= '<ul class="aux-list aux-archives row clearfix">'.$archive_list.'</ul>';  
            }
            
            $blog_aux_output .='</div></div>'; // close .blog-filter-wrap
            
            
            /* AUX BUTTONS OUTPUT
            ================================================== */
            return $blog_aux_output;	
        
        }
    

    Best Regards,
    Rui

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

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

License required for the following item
Login and Registration Log in · Register