Syahir Hakim
KeymasterKuala Lumpur, Malaysia
When not perched on my workspace, I tremendously enjoy hiking in the bushes and climbing mountains. They serve as much-needed refuges from the pretense of cities.
Forum Replies Created
-
Admin
Easy. That’s called a static front page. Follow the instructions here: http://codex.wordpress.org/Creating_a_Static_Front_Page
Admin
Oops…I forgot the semicolons..should be like this:
if ( is_page('page1') )
$args = array_merge( $args, array( 'theme_location' => 'secondary-menu-page1' ) );
if ( is_page('page2') )
$args = array_merge( $args, array( 'theme_location' => 'secondary-menu-page2' ) );
if ( is_page('page3') )
$args = array_merge( $args, array( 'theme_location' => 'secondary-menu-page3' ) );Also, don’t change the
theme_locationto your theme location! That’s actually a parameter for thewp_nav_menu()function call, so just leave it astheme_location. Just change the value it points to, like what you’ve already done above.Admin
Hurm..no straightforward way I suppose. I don’t think there’s any Dyanmic Widget-like plugin for custom menus yet.
But you can do this in your child theme. Basically the idea is to add many more menus, each for the separate pages that you want. Then only show those menus when you’re on the page.
This goes in child theme’s functions.php:
<?php
/* Register multiple secondary menus */
register_nav_menus( array(
'secondary-menu-page1' => __( 'Secondary Menu (Page 1)', 'graphene' ),
'secondary-menu-page2' => __( 'Secondary Menu (Page 2)', 'graphene' ),
'secondary-menu-page3' => __( 'Secondary Menu (Page 3)', 'graphene' ),
) );
/* Conditionally display secondary menu */
function graphene_multiple_secondary_menu( $args ){
if ( is_page('page1') )
$args = array_merge( $args, array( 'theme_location' => 'secondary-menu-page1' ) )
if ( is_page('page2') )
$args = array_merge( $args, array( 'theme_location' => 'secondary-menu-page2' ) )
if ( is_page('page3') )
$args = array_merge( $args, array( 'theme_location' => 'secondary-menu-page3' ) )
return $args;
}
add_filter( 'graphene_secondary_menu_args', 'graphene_multiple_secondary_menu' );
?>This way you can register as manu custom secondary menus as you like, and have them appear only on the associated page.
Admin
There’s really no need to be sorry. You’re here for assistance, and we’re here to help you 🙂
You can try reinstalling the theme again. Just delete it and then install it again.
Admin
ok, that’s weird. Can you try removing all widgets from your widget area?
Admin
Er..ok. What plugins do you have installed?
Admin
Here’s an explanation of and instruction to install Static Front Page: http://codex.wordpress.org/Creating_a_Static_Front_Page
When you’ve done that, come back for the “hide in CSS’ part.
Admin
Add this in your Custom CSS option:
#sidebar_bottom {
background: #D2D4FB;
}Admin
Did you modify the theme’s files in any way? Your sidebar markup doesn’t look the same like the theme’s markup. Are you using a child theme? If yes, what files are in your child theme?
Admin
Are you using WPMU or are you using WordPress 3.0+ with multisite enabled? I just tested the theme on WordPress 3.2.1 Multisite and the comments formatting work just fine.
Also, what plugins do you have installed and activated?
