Skip to main content

WP nav question 1111 Responses

Last post: 2 years, 7 months ago | Thread started: Oct 16, 09, 9:25 a.m.

RespondNew TopicDisable Images

Out of context: Response #8 [Oct 16, 09, 9:25 a.m.]

  • bulletfactory

    sometimes it's easier to do a hybrid of hardcode/dynamic.... example:

    <?php if (is_page('About') || is_page('Contact')) { ?>
    <ul class="subnav">
    <li><a href="<?php echo bloginfo('url'); ?>/whatever.pdf" title="link">link</a></li>
    </ul>
    <?php } ?>

    hope that helps.... and was what you were asking.

    • this would be in sidebar.php or wherever your nav sits. this entire code would also be surrounded by another list item (nested)bulletfactory
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel

Skip to main content