Get rid of "cetegories" in menu of Scholar theme

I am trying to get rid of “categories” in the main menu of the Scholar theme. I went to includes/mainnavigation.php and took out what looked like the obvious bit of code but no luck! I have included a screen shot if you could tell me which lines to take out…or if there is somewhere else I should be editing…

[attachments are only viewable by logged-in members]

  • Samantha
    • WPMU DEV Initiate

    I did that, went back into my WP dashboard and picked a page and then view and still see it…

    see wash.org/about-wash (don’t go the the home page it currently is redirected to the current site while I build this one)….

  • Samantha
    • WPMU DEV Initiate

    As far as I can tell, “Categories” is built in to the theme. It doesn’t show up where you edit the menu. You are allowed to select and deselect categories to add to the menu but can get rid of the tab itself. I still haven’t figured out how to make it go away, if anyone else has an idea…

  • Samantha
    • WPMU DEV Initiate

    That didn’t seem to work either, Alex. Additionally, I installed buddypress to solve a problem I was having with Membership not being able to capture street addresses, and there is another menu item I want gone… “Community” appeared with the install and I can make it seem to go away either now. It seems like this should be a much more simple fix than it is turning out to be. As a user of a ready built theme I would think most people would want to be able to control what is on the main nav menu.

  • Samantha
    • WPMU DEV Initiate

    OK I got rid of “categories” by taking this out of main-navigation.php:

    <li><a href="#"><?php _e( 'Categories', 'bp-scholar' ) ?></a>
    <ul>
    <?php wp_list_categories('orderby=name&title_li=');
    $this_category = get_category($cat);
    if (isset($this_category->cat_ID) && get_categories($this_category->cat_ID) != "") {

    wp_list_categories('orderby=id&show_count=0&title_li=
    &use_desc_for_title=1&child_of='.$this_category->cat_ID);

    }
    ?>
    </ul>
    </li>

    I tried taking the next bit of code out to get rid of “communities” and it messed up the whole site. sigh.

    <li><a href="#"><?php _e( 'Community', 'bp-scholar' ) ?></a>
    <ul>
    <?php if ( 'activity' != bp_dtheme_page_on_front() && bp_is_active( 'activity' ) ) : ?>
    <li<?php if ( !bp_is_user() && bp_is_current_component( BP_ACTIVITY_SLUG ) ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'bp-scholar' ) ?>"><?php _e( 'Activity', 'bp-scholar' ) ?></a>
    </li>

    any ideas on what I need to do here. I need this fixed by Saturday!