I'd like to show my users some features I offer if they register in a special nav bar. I've created this for a logged in version and a logged out version:
if ( is_user_logged_in() ) {
$menu = wp_nav_menu( array( 'theme_location' => 'logged-in-menu', 'container' => '0', 'fallback_cb' => 'wp_page_menu', 'echo' => '0' ) );
echo $menu;
} else {
$menu = wp_nav_menu( array( 'theme_location' => 'main-menu', 'container' => '0', 'fallback_cb' => 'wp_page_menu', 'echo' => '0' ) );
?>
<style>#menu-item-1046{opacity : 0.4; filter: alpha(opacity=40);}</style>
<?php
echo $menu;
}
I'm trying to grey out (disable but leave visible) nav buttons by ID. Obviously my CSS in there works but doesn't disable the button...
I tried <script>$('#menu-item-1046').button('disable');</script> But I've barely dabbled in jQuery as of now.
wp_nav_menu(). – kaiser Mar 11 at 13:18