Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] How to hide Registration menu link for logged in users? (http://forum.bytesforall.com/showthread.php?t=12098)

Sacka Jan 7, 2011 08:55 PM

[SOLVED] How to hide Registration menu link for logged in users?
 
Hi, my first post, and I can't figure something out. For some themes you can use this on the header.php (13, 12 being the page IDs to exclude)

PHP Code:

<?php
                
if(is_user_logged_in()){
        
wp_list_pages('sort_column=menu_order&depth=2&title_li=&exclude=13,12');
    }
    else{
        
wp_list_pages('sort_column=menu_order&depth=2&title_li');
    }
                
?>

but Atahualpa works differently and I can't figure out how to do it. Any ideas?

Atahualpa 3.53 and trying to hide the "Register" menu page off the menu bar for logged in users.

Thanks

lmilesw Jan 7, 2011 09:15 PM

You could put something like the following in ATO>Add HTML/CSS Inserts>CSS Inserts replacing the searchform class with the id or class of the registration link.
HTML Code:

<?php if( is_user_logged_in() ) { ?>
.searchform {display:none;}
<?php } ?>


Sacka Jan 8, 2011 07:56 AM

Thank you, it worked. Solved.


All times are GMT -6. The time now is 01:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.