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

    (@gerard1)

    Mercime,
    thank you for your quick reply. I will give it a go and let you know how I got on. I am new to WordPress.

    gerard1

    Thread Starter gerard1

    (@gerard1)

    Hi Mercime,

    I was successful in installing the ‘navigation buttons’, thank you very much. Brillant!
    Now, you’ve guessed it’, how do I link the buttons to the corresponding pages. Sorry for my ignorance.

    gerard1

    Now, you’ve guessed it’, how do I link the buttons to the corresponding pages.

    What’s the HTML markup for your navigation. Assuming you followed the instructions in the webpage, it would at least look something like:

    <div id="navmenu">
    <ul>
    	<li><a href="<?php echo get_settings('home'); ?>">HOME</a></li>
    	<li><a href="wordpress/recipes/">RECIPES</a></li>
    	<li><a href="wordpress/travel/">TRAVEL</a></li>
    	<li><a href="https://www.www.ads-software.com">WORDPRESS</a></li>
    </ul>
    </div>

    wp_list_pages way:

    <div id="navmenu">
    <ul>
    	<li><a href="<?php echo get_settings('home'); ?>">HOME</a></li>
    	<li><?php wp_list_pages(); ?></li>
    </ul>
    </div>

    wp_page_menu way:

    <div id="navmenu">
    <ul>
    <?php wp_page_menu(); ?>
    </ul>
    </div>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Navigation buttons’ is closed to new replies.