Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Blog Aux Help
New Landing › How can we help? › Themeforest Theme Support › Dante › Blog Aux Help
- This topic has 1 reply, 2 voices, and was last updated 10 years by Rui Guerreiro – SUPPORT.
Viewing 2 posts - 1 through 2 (of 2 total)
-
Posted in: Dante
-
March 7, 2014 at 10:18 pm #55592
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.
March 8, 2014 at 4:20 pm #55698Hi,
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 -
Posted in: Dante
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in and have valid license to reply to this topic.