menu in different page in different style

you can use this, <?php if( is_front_page() ):?> <div class=”home-page-menu”> wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); </div> <?php elseif; ?> <div class=”inside-page-menu”> wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); </div> <?php endif; ?> Here, you should be change your CSS style for home-page-menu and inside-page-menu . for more … Read more

How to set up suhosin.ini for unlimited menus

I found the answer, so I’m posting it to help others out: In this file (depending on your server setup): /etc/php5/apache2/conf.d Change suhosin.ini on the following lines (remove the semicolons if applicable): suhosin.post.max_vars = 5000 suhosin.request.max_vars = 5000 The default 1000 will not work – 5000 seems to work well for my needs (so far!)

Creating a custom menu

Rob, take a look at using register_nav_menu function in WordPress it allows you to build custom menus with ease. http://codex.wordpress.org/Template_Tags/register_nav_menu

Remove the current item from a menu

You’ll probally want to use WP Conditional tags and do something like this: if(is_home()){ //show home menu } else if(is_page(‘mypage’)){ //show category menu for JUST that page } else{ //show the menu for all other pages } What you do inside each conditional statement is up to you. Here are 3 solutions: Use CSS and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)