Forum Replies Created

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

    (@nasspray)

    No it works if i use:

    <div class="testimonials">
    			<?php
    
    			if ( is_page('5') ) {    // Show nothing.
    			}
    			else {
    				displaytestimonials();
    			}
    			?>
    </div>

    But it also shows up on the page with id=5 that I don’t want it on.

    Thread Starter nasspray

    (@nasspray)

    Awesome thanks guys for all your help!!

    Thread Starter nasspray

    (@nasspray)

    Try this:
    function pj_menu() {
    register_nav_menu( ‘navbar-menu’, __( ‘Top Menu’ ) );
    }
    add_action( ‘after_setup_theme’, ‘pj_menu’ );
    The problem is that without an add_action() call for the function, the function will never execute.

    Awesome that worked!

    Now it’s only the navigation.php that makes it looks bad. I have changed from this:

    <ul id="nav">
    	<li class="nav-start"> </li>
    	<?php wp_list_pages('title_li=&depth=2'); ?>
    	<li class="page_item last-page-item rss"><a href="<?php bloginfo('rss2_url'); ?>" title="News Feed">RSS</a></li>
    	<li class="nav-end"> </li>
    </ul>

    To this:

    <ul id="nav">
    	<li class="nav-start"> </li>
    	<?php wp_nav_menu( array( 'container_id' => 'navbar', 'theme_location' => 'navbar-menu', 'menu_id' => 'nav' ) ); ?>
    	<li class="page_item last-page-item rss"><a href="<?php bloginfo('rss2_url'); ?>" title="News Feed">RSS</a></li>
    	<li class="nav-end"> </li>
    </ul>

    But that doesen’t look nice, any clue how that code should look like?

    Thread Starter nasspray

    (@nasspray)

    Didn’t work for me:/

    Should i put the :

    // sets up the use of wordpress menus - one of them.
    	function pj_menu() {
    		register_nav_menu( 'navbar-menu', __( 'Top Menu' ) );
    	}

    Between the:

    }
    ?>

    in the end? or after that?

    And should I make the navigation.php looks like this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    nasspray

    (@nasspray)

    I have exact the same problem.

    Did you fix it?

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