Forums

Navigation buttons (5 posts)

  1. gerard1
    Member
    Posted 2 years ago #

    How to add navigation buttons, such as Home, About me, Contact, on a Kubrick theme?

  2. @mercime
    Member
    Posted 2 years ago #

  3. gerard1
    Member
    Posted 2 years ago #

    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

  4. gerard1
    Member
    Posted 2 years ago #

    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

  5. @mercime
    Member
    Posted 2 years ago #

    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="http://www.wordpress.org">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>

Topic Closed

This topic has been closed to new replies.

About this Topic