• I’ve currently modified my header.php file so that it pulls both Pages & Categories for the menu.

    http://cmprssrmedia.com/abmusic/

    However I cant get the categories to utilize the button design like the Pages do. I’ve been trying to modify my style sheet with no luck

    Any advise would be very helpful

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • on first glance at your code, I would bet that you put your list_cat command under the </ul> instead of before it

    should be like

    <ul>
    <li>home page code</li>
    wp_list_pages code
    wp_list_cat code
    </ul>

    Thread Starter fearkills

    (@fearkills)

    This is how I have it configured based on this tutorial

    http://wordpress.org/support/topic/259662?replies=4

    <div class="art-nav">
    	<div class="l"></div>
    	<div class="r"></div>
    	<ul class="art-menu">
                    <?php art_menu_items(); ?>
    <?php wp_list_categories('orderby=name&exlude=181&title_li=');
     	             $this_category = get_category($cat);
     	             if (get_category_children($this_category->cat_ID) != "") {
     		       echo "<ul>";
                          wp_list_categories('orderby=id&show_count=0&title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID);
     		          echo "</ul>";
     	}
    	?>
    </div>

    Shouldn’t that be correct?

    well….I’m not sure much what you need to tweak in that code…I just know that currently you’r category <li> items in your source code are not wrapped by any <ul> tags. Which makes them invalid as list items need to be within an actual list.

    Your wp_list_pages items and your home page items are within a list <ul> so they get the formatting.

    You’ve got to get your wp_list_categories items within the <ul></ul> that the home and wp_list_pages are withion for the formatting to be all matched

    http://codex.wordpress.org/Template_Tags/wp_list_categories

    have you read this page? I think you may have way more stuff in your code than necessary….

    Thread Starter fearkills

    (@fearkills)

    I tried the

    <?php wp_list_categories( $args ); ?>

    But that just lists a categories link and all the items become drop downs. Still has the same issue as well. Am I missing something in my CSS?

    http://codex.wordpress.org/Template_Tags/wp_list_categories#Display_or_Hide_the_List_Heading

    well, you would want to not display the List Heading (you can’t copy the code in the example exactly, as it also has some categories excluded….as does the code you pasted above…)

    nothing is missing from your CSS, because the rest of your list items work fine. You just need to get your code right, and in the right place. It will then use the css that your home and pages links are using

    Thread Starter fearkills

    (@fearkills)

    Well, I’ve tried placing it everywhere. Here is my Header code, unadultered

    </head>
    <body>
    <div id="art-main">
    <div class="art-Sheet">
        <div class="art-Sheet-cc"></div>
        <div class="art-Sheet-body">
    <div class="art-Header">
        <div class="art-Header-jpeg"></div>
    
    </div>
    <div class="art-nav">
    
    	<div class="l"></div>
    	<div class="r"></div>
    	<ul class="art-menu">
                    <?php art_menu_items();?>
    </div>

    Here it is as I currently have it now

    </head>
    <body>
    <div id="art-main">
    <div class="art-Sheet">
        <div class="art-Sheet-cc"></div>
        <div class="art-Sheet-body">
    <div class="art-Header">
        <div class="art-Header-jpeg"></div>
    
    </div>
    <div class="art-nav">
    
    	<div class="l"></div>
    	<div class="r"></div>
    	<ul class="art-menu">
                    <?php art_menu_items();?>
                   <?php wp_list_categories('orderby=name&exlude=181&title_li=');
     	$this_category = get_category($cat);
     	if (get_category_children($this_category->cat_ID) != "") {
     		echo "<ul>";
    wp_list_categories('orderby=id&show_count=0&title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID);
     		echo "</ul>";
     	}
    	?>
    </div>

    I’ve put it before the ul class, immediately after but before menu items, and had all negative results.

    Not sure where else it should be placed in order for it to display properly

    Any other thoughts?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Custom Menu Issue’ is closed to new replies.