Results 1 to 3 of 3

Thread: Greeting Message...

  1. #1
    Thread Starter
    brianjester's Avatar
    Join Date
    Jun 2013
    Location
    United States
    Posts
    260
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Greeting Message...

    Hi,

    I am trying to "move" or re position the greeting in the top of the page. Note: I don't want to display the login / register text links in the greeting area as I have a login area already created in my header. I basically just want that so I have a log out link in my header navigation, as well as a welcome greeting.

    Ex: If I am logged in as admin, I see Welcome, admin [ My Dashboard | Logout ] when I am logged in as admin. I want to put that code, which I found in the functions.php file, into my header.php file, but nothing shows...I have copied this code:


    Code:
    // display the login message in the header
    if (!function_exists('cp_login_head')) {
    	function cp_login_head() {
    
    		if ( is_user_logged_in() ) :
    			global $current_user;
    			$current_user = wp_get_current_user();
    			$display_user_name = cp_get_user_name();
    			$logout_url = cp_logout_url();
    			?>
    			<?php _e( 'Welcome,', APP_TD ); ?> <strong><?php echo $display_user_name; ?></strong> [ <a href="<?php echo CP_DASHBOARD_URL; ?>"><?php _e( 'My Dashboard', APP_TD ); ?></a> | <a href="<?php echo $logout_url; ?>"><?php _e( 'Log out', APP_TD ); ?></a> ]&nbsp;
    		<?php else : ?>
    			<?php _e( 'Welcome,', APP_TD ); ?> <strong><?php _e( 'visitor!', APP_TD ); ?></strong> [ <a href="<?php echo appthemes_get_registration_url(); ?>"><?php _e( 'Register', APP_TD ); ?></a> | <a href="<?php echo wp_login_url(); ?>"><?php _e( 'Login', APP_TD ); ?></a> ]&nbsp;
    		<?php endif;
    
    	}
    }
    into my header.php file inside this tag:

    HTML Code:
    <div class="header_menu_res"> 
    
    code...code...code...
    
    </div>
    am I missing additional code? Or can / should I just use css to re-position it to where I want it to be?

    Thanks again!
    Brian

  2. #2
    Thread Starter
    brianjester's Avatar
    Join Date
    Jun 2013
    Location
    United States
    Posts
    260
    Thanks
    2
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Samcy max file upload size message inaccurate, and error message inaccurate
    By almightyeric in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: January 15th, 2014, 10:09 AM
  2. Samcy Where does this message come from?
    By seoagent in forum Help Using ClassiPress
    Replies: 4
    Last Post: November 8th, 2013, 04:59 PM
  3. Message from Indeed
    By johnjohnjohn in forum Olinda
    Replies: 1
    Last Post: September 19th, 2013, 08:15 AM
  4. How do I change the "Howdy" greeting to "Hello" in Classipress please?
    By studentads in forum Help Using ClassiPress
    Replies: 8
    Last Post: July 28th, 2012, 07:40 AM