Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #94863
    Xavier
    Participant

    Hello
    I need configure de second menu only view if user is loged

    Thanks

    http://87.106.136.144/smart/es/smartfootball/

    #94890
    Mahesh
    Participant

    @diferent:
    Hi Xavier,

    Thank you for using Full Frame Pro theme.
    For this, you’ll need to create a child theme. You can find more details on creating child theme HERE. Then in your child theme’s functions.php add the following code.

    add_action( 'init', 'fullframe_child_secondary_menu_only_for_logged' );
    function fullframe_child_secondary_menu_only_for_logged() {
    	remove_action( 'fullframe_before_content', 'fullframe_secondary_menu', 20 );
    	if( is_user_logged_in () ) {
    		add_action( 'fullframe_before_content', 'fullframe_secondary_menu', 20 );
    	}
    }

    Regards,
    Mahesh

    #95104
    Xavier
    Participant

    Thanks Mahesh!

    Another question

    How can i do for import configuration of full-frame-pro to full-frame-pro-child?

    #95107
    Mahesh
    Participant

    @diferent: This is more of technical issue and is not done automatically. So, you need to decide on Child theme or Parent theme when you start your development process. I am not at SQL expert to give you help on this. So, you might want to check this core ticket thread https://core.trac.wordpress.org/ticket/27177

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Show second menu only if loged’ is closed to new replies.