1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[RESOLVED] Woothemes Headlines header question...

Discussion in 'White Hat SEO' started by Sente, Oct 14, 2012.

  1. Sente

    Sente Junior Member

    Joined:
    Sep 21, 2009
    Messages:
    193
    Likes Received:
    19
    I'm editing Headlines by Woothemes and I want to get rid of the secondary header (the header that displays the categories... "secnav" I believe). I can't for the life of me figure out what lines to delete (or another way to turn it off). This is from the header.php file:

    Code:
    <div id="navigation">        
                <?php if ( get_option('woo_nav_top') <> "true" ) include( TEMPLATEPATH . '/includes/page-nav.php' ); ?>
                            
                <div id="cat-nav">
                    <div class="col-full">
                        <?php
                        if ( function_exists('has_nav_menu') && has_nav_menu('secondary-menu') ) {
                            wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'secnav', 'menu_class' => 'fl', 'theme_location' => 'secondary-menu' ) );
                        } else {
                        ?>
                        <ul id="secnav" class="fl">
                        
                        <?php 
                        if ( get_option('woo_custom_nav_menu') == 'true' && function_exists('woo_custom_navigation_output') ) {
                            if ( get_option('woo_menu_desc') == "true" ) $desc = 1;
                            woo_custom_navigation_output("name=Woo Menu 2&desc=".$desc);
                        } else { ?>
                        
                            <?php foreach ( (get_categories('hide_empty=0&exclude='.get_option('woo_nav_exclude') ) ) as $category ) { if ( $category->category_parent == '0' ) { ?>      
                            <li>
                                <a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->cat_name; ?><?php if ( $GLOBALS[desc] ) { ?><br/><span><?php echo $category->category_description; ?></span><?php } ?></a>
                                
                                <?php if (get_category_children($category->cat_ID) ) { ?>
                                <ul><?php wp_list_categories('title_li&child_of=' . $category->cat_ID ); ?></ul>
                                <?php } ?>
                            </li>        
                            <?php } } ?>
                            
                        <?php }    ?>
                            
                        </ul><!-- /#nav2 -->
                        <?php } ?>
                        <?php if ( get_option('woo_search_disable') <> "true" ) : ?>
                        <div id="search" class="fr">
                            <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
                                <input type="text" class="field" name="s" id="s"  value="<?php _e('Enter keywords...', 'woothemes') ?>" onfocus="if (this.value == '<?php _e('Enter keywords...', 'woothemes') ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Enter keywords...', 'woothemes') ?>';}" />
                                <input class="submit btn" type="image" src="<?php bloginfo('template_directory'); ?>/images/ico-search.png" value="Go" />
                            </form>
                        </div><!-- /#search -->
                        <?php endif; ?>
                    </div><!-- /.col-full -->
                </div><!-- /#cat-nav -->
                
            </div><!-- /#navigation -->
    
    Thank you!
     
    Last edited: Oct 14, 2012
  2. Sente

    Sente Junior Member

    Joined:
    Sep 21, 2009
    Messages:
    193
    Likes Received:
    19
    Never mind! I FINALLY figured it out! Duh!

    I just removed ALL of this:

    Code:
                <div id="cat-nav">
                    <div class="col-full">
    					<?php
    					if ( function_exists('has_nav_menu') && has_nav_menu('secondary-menu') ) {
    						wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'secnav', 'menu_class' => 'fl', 'theme_location' => 'secondary-menu' ) );
    					} else {
    					?>
                        <ul id="secnav" class="fl">
                        
    					<?php 
                        if ( get_option('woo_custom_nav_menu') == 'true' && function_exists('woo_custom_navigation_output') ) {
    						if ( get_option('woo_menu_desc') == "true" ) $desc = 1;
    						woo_custom_navigation_output("name=Woo Menu 2&desc=".$desc);
                        } else { ?>
                        
    						<?php foreach ( (get_categories('hide_empty=0&exclude='.get_option('woo_nav_exclude') ) ) as $category ) { if ( $category->category_parent == '0' ) { ?>      
                            <li>
                                <a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->cat_name; ?><?php if ( $GLOBALS[desc] ) { ?><br/><span><?php echo $category->category_description; ?></span><?php } ?></a>
                                
                                <?php if (get_category_children($category->cat_ID) ) { ?>
                                <ul><?php wp_list_categories('title_li&child_of=' . $category->cat_ID ); ?></ul>
                                <?php } ?>
                            </li>        
                            <?php } } ?>
                            
    					<?php }	?>
                            
                        </ul><!-- /#nav2 -->
                        <?php } ?>
                        <?php if ( get_option('woo_search_disable') <> "true" ) : ?>
                        <div id="search" class="fr">
                            <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
                                <input type="text" class="field" name="s" id="s"  value="<?php _e('Enter keywords...', 'woothemes') ?>" onfocus="if (this.value == '<?php _e('Enter keywords...', 'woothemes') ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Enter keywords...', 'woothemes') ?>';}" />
                                <input class="submit btn" type="image" src="<?php bloginfo('template_directory'); ?>/images/ico-search.png" value="Go" />
                            </form>
                        </div><!-- /#search -->
                        <?php endif; ?>
                    </div><!-- /.col-full -->
                </div><!-- /#cat-nav -->
    
     
  3. john1444

    john1444 Elite Member

    Joined:
    Mar 27, 2012
    Messages:
    2,559
    Likes Received:
    755
    Gender:
    Male
    Occupation:
    Marketer
    Location:
    Miami, FL
    Home Page:
    Congrat, it's good to experiment..
     
    • Thanks Thanks x 1