WordPress.org

Ready to get started?Download WordPress

Forums

Integrating lazy gallery link into dynamic menu problem (1 post)

  1. tWS
    Member
    Posted 8 years ago #

    I have installed Lazy Gallery and it is working fine, however I want to place a link to the gallery in my dynamic menu at the top and have it dynamically highlighted when I select it. Currently, my other pages (which are WP pages) are dynamically highlighted using the 'is_page' function. How do I dynamically highlight the lazy gallery page? I've been trying to use 'isset' but being a PHP novice I can't get it to work.

    My dynamic menu part of header.php currently looks like this -

    <?php

    if ( is_page('Biographies') ) { $current = 'biographies'; }
    elseif ( is_page('Link List') ) { $current = 'linklist'; }
    else { $current = 'weblog'; }
    ?>

    ...

    <div id="navlist">

  2. Weblog
  3. Biographies
  4. Link List
  5. </div>

    the Whole Shhbang can be found at http://c0axial.co.uk/shhbang/shhbang-cms

    Some help much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags