Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

[SOLVED] How to hide Registration menu link for logged in users?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jan 7, 2011, 09:55 PM
Sacka
 
2 posts · Jan 2011
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
  #2  
Old Jan 7, 2011, 10:15 PM
lmilesw's Avatar
lmilesw
 
10,111 posts · Jul 2009
Central New York State USA
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 } ?>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Jan 8, 2011, 08:56 AM
Sacka
 
2 posts · Jan 2011
Thank you, it worked. Solved.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade 3.49-> 3.53 ok when logged in, white page when logged out. jasonchamb New Versions, & Updating 3 Oct 24, 2010 06:31 PM
Possible to only display Page menu to logged in users? Thomas Page & Category Menu Bars 7 Jul 5, 2010 02:54 AM
[SOLVED] Comments link not showing when not logged in sargemarcori Forum How-To 1 Jun 2, 2010 04:27 PM
Hide a Post but have a Link to it in Sidebar treeplant Center area post/pages 6 Apr 18, 2010 08:22 PM
User Registration link vincotek Atahualpa 3 Wordpress theme 8 May 6, 2009 04:50 PM


All times are GMT -6. The time now is 04:46 AM.


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