Home Forums Basel support forum How do you add the Login/Logout Buttons to the menu

How do you add the Login/Logout Buttons to the menu

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #41055

    diluk
    Participant

    Hi How do you add Login/Logout Buttons to the menu

    #41093

    Artem Temos
    Keymaster

    Hi,

    By default, this header layout doesn’t have Login/Register link. But you can add it manually placing the following code snippet to the functions.php file in the child theme.

    add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 );
    
    function basel_custom_header_configuration() {
    
    	return array(
    		'container' => array(
    			'wrapp-header' => array(
    				'logo',
    				'widget_area',
    				'right-column' => array(
    					'header_links',
    					'search',
    					'wishlist',
    					'cart',
    					'mobile_icon',
    				)
    			)
    		),
    		'navigation-wrap' => array(
    			'container' => array(
    				'main_nav'
    			)
    		)	
    	);
    }

    Regards

    #41106

    diluk
    Participant

    Hi The link appeared on the menu, but now when i click it, it redirects to Wishlist page.
    And the heart icon redirects to home page.

    #41114

    Artem Temos
    Keymaster

    Most likely you didn’t setup your wishlist page https://yithemes.com/docs-plugins/yith-woocommerce-wishlist/02-settings.html
    And we don’t see that you added the code we sent you so the my account link is still not shown.

    #41214

    diluk
    Participant

    Hi can you goto the website and check now, Still it redirects to wishlist

    #41215

    Artem Temos
    Keymaster

    Seems that you didn’t install the my account page that comes with WooCommerce page. Read more in the plugin’s documentation https://docs.woocommerce.com/document/woocommerce-pages/

    #41216

    diluk
    Participant

    Okay i did setup it now , but still the same
    https://www.p2nfashion.com/my-account/

    #41220

    Artem Temos
    Keymaster

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #41221

    diluk
    Participant

    Will do

    #41226

    Artem Temos
    Keymaster

    But you set up the wishlist page as your my account page https://gyazo.com/ef58be620658668aa8ca26af9b9f5b34

    #41227

    diluk
    Participant

    Thanks alot and sorry for the trouble

    #41230

    Artem Temos
    Keymaster

    No problem, we are glad that you solved it.

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘How do you add the Login/Logout Buttons to the menu’ is closed to new replies.