Support » Plugin: YITH WooCommerce Social Login » Moving the buttons

  • liquid.ideas

    (@liquidideas)


    Hi, first of all thank you its a great plugin! and second can you point me to what file I can look in to be able to move the buttons from the middle of the login form to above it? Thanks so much

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    you can add this code in your theme functions.php

    if ( !function_exists('yith_social_login_movebuttons_login') && function_exists('YITH_WC_Social_Login_Frontend')){
        function yith_social_login_movebuttons_login() {
            remove_action('woocommerce_login_form', array(YITH_WC_Social_Login_Frontend(), 'social_buttons'));
            add_action('woocommerce_login_form_start', array(YITH_WC_Social_Login_Frontend(), 'social_buttons'));
    
        }
    add_action('init','yith_social_login_movebuttons_login');
    }

    Regards

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.