Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kannued

    (@kannued)

    Now, I’m thinking that ” id=\”current\”>”; is partially css and php. I already have my

    • styled through my div=id. So I really don’t need to refer “current”. But I’m not sure what I can delete on that line. Can I have the following with one space in between the quotes?
    • <?php
      if (is_home())
      {
      echo ” “>”;
      ?>
      /”>Home
      <?php
      }
      ?>

      In a sense, I think I am already calling for the categories in the rest of my links. So I not sure what the difference is in the results between the above code and the ones I’m using in the rest of my menu drop down links. For example, in my Obituaries tab, I have two posts. So maybe I have already accomplished what I intended. My question is that under each of my menu drop down links, will all the posts for each category show up under said menu link?

    Thread Starter kannued

    (@kannued)

    Except when I delete id=\”current\, and leave one space between the two quotes, I get a parsing error.

    woops wrong thread.

    Thread Starter kannued

    (@kannued)

    I decided to forget this code in my dynamic menu
    <?php
    if (is_home())
    {
    echo ” id=\”current\”>”;
    ?>
    /”>Home
    <?php
    }
    ?>

    Instead I’m simply calling the category in the menu.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding categories in Dynamic Menu Highlighting’ is closed to new replies.