ThemeShaper Forums » Power Blog

Adding page links next to category dropdowns

(2 posts)
  • Started 1 year ago by John Roach
  • Latest reply from arturkim

Tags:

  1. I'll begin by saying I'm no expert, but I and am poking my way around to amazingly good effect using this excellent forum. Many thanks!

    I am hoping to add some links to pages NEXT to the category drop down menus so that they appear to be part of that navigation.
    Is that possible? From looking through the forum posts it seems like there's no clear way to add a page link within this category menu itself, so maybe I can add a pages menu next to it?
    Possible?

    here's the link to the work in progress site:
    http://sds.parsons.edu/realschool

    Posted 1 year ago #
  2. You could remove the default access and create a new one by adding the following code to functions.php.

    <?php
    /* Remove Access */
    function remove_access() {
    	remove_action('thematic_header','thematic_access',9);
    }
    add_action('init', 'remove_access');
    
    /* Add New Access */
    function child_theme_access() {
    ?>
    	<div id="access">
    		<div class="skip-link"><a href="#content" title="<?php _e('Skip navigation to the content', 'thematic'); ?>"><?php _e('Skip to content', 'thematic'); ?></a></div>
    		<div class="menu">
    			<ul class="sf-menu sf-js-enabled" id="nav">
    				<?php wp_list_categories ('sort_column=menu_order&title_li'); ?>
    				<?php wp_list_pages('sort_column=menu_order&depth=10&title_li='); ?>
    			</ul>
    		</div>
    	</div>
    <?php }
    add_action('thematic_header','child_theme_access',9);
    
    ?>

    Artur Kim

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.