Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Remove "All Discussions" from sidebar?

How would I go about removing "All Discussions" from the sidebar? I'd like to create a parent category named "All Discussions" to force 2 of my categories with many nested sub-categories to collapse, and it looks goofy having 2 "All Discussions" links in the sidebar.

Comments

  • Options
    peregrineperegrine MVP
    edited March 2013

    One of a number of ways to do it is to add a js.

    jQuery(document).ready(function($) {
    $('.PanelCategories li:first').hide();
    });
    

    you can add the js any number of ways - plugin, themehooks, default.master.tpl, default.master.php, etc. etc. see other discussions for adding js.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    peregrineperegrine MVP
    edited March 2013

    You could use category accordion

    http://vanillaforums.org/addon/categoryaccordion-plugin

    or

    http://vanillaforums.org/addon/hidepanel-plugin

    to collapse categories.

    and add the js above to either of the plugins.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    Thank you peregrine!

  • Options

    One more quick question about my sidebar if you don't mind. How would I go about disabling the "Categories" hyperlink at the top of the sidebar? Here's a pic...

    http://i.imgur.com/alV0u8O.png

  • Options
    peregrineperegrine MVP
    edited March 2013

    jQuery(document).ready(function($) {
    $('.PanelCategories li:first').hide();
    $('.BoxCategories h4:first').animate({opacity:.01});
    })
    
    or 
    
    jQuery(document).ready(function($) {
    $('.PanelCategories li:first').hide();
    $('.BoxCategories h4:first').hide();
    })
    

    that may be trickier if you use the other plugins above. specify or give link to your site rather than images for any future answers.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.