Support » Themes and Templates » 2 Questions: Validation Error & Highlight Current Category

  • Resolved gsweb


    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>



  • The topic ‘2 Questions: Validation Error & Highlight Current Category’ is closed to new replies.