• Resolved dczepiel

    (@dczepiel)


    Hello,

    I would like to customize the drop down menus in modularity lite theme. (Check out http://dariuszczepiel.pl )

    The code is as follows:

    <div id="nav">
        <ul>
          <li class="drop"><span>Categories</span>
            <ul>
    			<?php wp_list_categories('orderby=name&depth=-1&title_li='); ?>
            </ul>
          </li>
          <li class="drop"><span>Pages</span>
            <ul>
            	<?php wp_list_pages('orderby=name&depth=-1&title_li='); ?>
            </ul>
          </li>
          <li class="drop"><span>Subscribe</span>
            <ul>
              <li><a href="<?php bloginfo('rss2_url'); ?>" class="icon entries">Subscribe to content</a></li>
              <li><a href="<?php bloginfo('comments_rss2_url'); ?>" class="icon comments">Subscribe to comments</a></li>
            </ul>
          </li>
          <li class="drop"><span>Contact</span>
            <ul>
              <li><a href="tel:<?php echo $phone; ?>" class="icon phone"><?php echo $phone; ?></a></li>
              <li><a href="mailto:<?php echo $email; ?>" class="icon email"><?php echo $email; ?></a></li>
            </ul>
          </li>
        </ul>
      </div>

    What should I add to have the additional drop down menu for:
    1. Archives month by month (Click drop down and you have January 2010, February 2010 etc)

    2. Links from a certain link category (So I click dropdown and only links categorized under “Superlinks” category show up ordered by name)

    Would you know how to edit the code to have it ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dczepiel

    (@dczepiel)

    Archives are working OK, but have a problem with Links from specific category.

    I managed to figure out the code to put into nav.php – here it is:

    <li class="drop"><span>In someone else's eye</span>
    <ul>
    <?php wp_list_bookmarks('category=3&orderby=name&show_images=0&show_description=0&show_name=0&title_li='); ?>
    </ul>
    </li>

    The problem is once you click “In someone else’s eye” dropdown (In someone else’s eye is the name of the link category) the name ‘in someone else’s eye’ appears again and only below it are the actual links. Is there a way to get rid of that ‘in someone else’s eye’? IN other words is there a way to make that links display just like categories display once you click the dropdown ?

    Have a look http://dariuszczepiel.pl/blog

    Thread Starter dczepiel

    (@dczepiel)

    anyone ?

    Thread Starter dczepiel

    (@dczepiel)

    I don’t get it. How come it can list pages and categories using almost the same code without the title being shown and the links it cannot?

    Thread Starter dczepiel

    (@dczepiel)

    solved:

    <?php wp_list_bookmarks('categorize=0&category=3&orderby=name&depth=-1&title_li='); ?>

    categorize=o was the missing part

    dczepiel, I went to your site and have a couple questions for you if you have time:

    1. Do you know how to only list certain pages in a drop down menu. Like in your “about me section” it only lists two pages and in your “in someone else’s eyes” drop down you have a bunch of other pages.

    2. How did you get that slideshow layout on your “places” page on your portfolio site?

    Thanks!

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

The topic ‘[Modularity lite] Customizing drop down menus’ is closed to new replies.