nasspray
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Use PHP-script on all pages except oneNo 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.
Forum: Themes and Templates
In reply to: Change wp_list_pages to wp_nav_menuAwesome thanks guys for all your help!!
Forum: Themes and Templates
In reply to: Change wp_list_pages to wp_nav_menuTry 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?
Forum: Themes and Templates
In reply to: Change wp_list_pages to wp_nav_menuDidn’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]
Forum: Plugins
In reply to: [plugin: eShop] Problem with Payson-checkoutI have exact the same problem.
Did you fix it?