JonW_FergusParticipantMay 24, 2018 at 12:50 pmPost count: 6
In theme options, you can opt to include the “My Account” menu item in the main menu. What I want to do is have this say “My Account” until the user logs in, and then have it say “Welcome, display_name”.
I see this in avada functions, which is all I can find that looks related to this function:
$my_account_link_contents = ( 'Right' == Avada()->settings->get( 'header_position' ) ) ? $caret_icon . esc_html__( 'My Account', 'Avada' ) : esc_html__( 'My Account', 'Avada' );
I’ve tried several versions of an IF function in my child theme, using
wp_get_current_user()but it’s proving to be beyond my php skills. Any help would be much appreciated.
- You must be logged in to reply to this topic.