• misslollirot

    (@misslollirot)


    I am having issues adding categories to the navigation I have tried the methods I found on the forum but I keep getting a drop down menu form.

    http://sinistersuicide.net/ok/ is the website I want to display “categories” in the navigation aswell as pages.

    My header code is:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="http://gmpg.org/xfn/11">
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    
    <title><?php if (is_home () ) { bloginfo('name'); } elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo('name'); }
    
     elseif (is_single() ) { single_post_title(); }
    
     elseif (is_page() ) { bloginfo('name'); echo ': '; single_post_title(); }
    
     else { wp_title('',true); } ?></title>
    
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/script.js"></script>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    <!--[if IE 6]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie6.css" type="text/css" media="screen" /><![endif]-->
    
    <!--[if IE 7]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie7.css" type="text/css" media="screen" /><![endif]-->
    
    <link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
    
    <link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" /> 
    
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php wp_head(); ?>
    
    </head>
    
    <body>
    
        <div id="art-page-background-gradient"></div>
    
    <div id="art-main">
    
    <div class="art-Sheet">
    
        <div class="art-Sheet-tl"></div>
    
        <div class="art-Sheet-tr"></div>
    
        <div class="art-Sheet-bl"></div>
    
        <div class="art-Sheet-br"></div>
    
        <div class="art-Sheet-tc"></div>
    
        <div class="art-Sheet-bc"></div>
    
        <div class="art-Sheet-cl"></div>
    
        <div class="art-Sheet-cr"></div>
    
        <div class="art-Sheet-cc"></div>
    
        <div class="art-Sheet-body">
    
    <div class="art-Header">
    
        <div class="art-Header-jpeg"></div>
    
    <div class="art-Logo">
    
        <div id="slogan-text" class="art-Logo-text">
    
            <?php bloginfo('description'); ?></div>
    
    </div>
    
    </div>
    
    <div class="art-nav">
    
    	<div class="l"></div>
    
    	<div class="r"></div>
    
    	<ul class="art-menu">
    
    		<?php art_menu_items(); ?>
    
    	</ul>
    
    </div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter misslollirot

    (@misslollirot)

    I have tried adding <a href="url">url name</a>

    But it doesn’t style to the same as the other links in the navigation, how can I style normal <a href="url">url name</a> links to match the other links in the navigation please?

    thanks!

    I think you need to look at wp_list_catagories. You can read how to set your preferences and more on that page.

    A quick fix would be the following:

    <ul class="art-menu">
     <?php wp_list_categories(); ?>
    </ul>

    That will list your categories. Then, using creative CSS (display:inline) you can line them up and style them just like your regular navigation.

    Hope that helps!

    Thread Starter misslollirot

    (@misslollirot)

    thanks for the help I did what you said but I get the problem with it showing as a drop down menu, any idea what could be doing that?

    http://sinistersuicide.net/ok/

    thanks!

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

The topic ‘Adding categories to the navigation help’ is closed to new replies.