WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2 Questions: Validation Error & Highlight Current Category (1 post)

  1. gsweb
    Member
    Posted 4 years ago #

    I get the following validation error, but still can't figure out what it is:
    W3 Validation Error for PostGain

    Also, I'm trying to make it so that the current category's text is in white. I'm using this code for PAGES, now I need the code for categories:
    #menu li.current_page_item a, #menu a:hover, #menu h2 a {
    color: #fff;
    }

    Here's how the links appear in my header:
    <div id="menu">

      <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
      <li class="<?php echo $highlight; ?>">">Home
      <?php wp_list_categories('sort_column=menu_order&depth=1&title_li='); ?>
      <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>

    <h2>"><?php bloginfo('name'); ?></h2>
    </div>

    Site: PostGain.com

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic