Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Damian

    (@timersys)

    The free version only loads the styles into the wp-login screen so you need to use instead login_enqueue_scripts

    eg:

    function remove_assets() {
        wp_dequeue_style('facebook-login');
        wp_deregister_style('facebook-login');
    }
    add_action('login_enqueue_scripts', 'remove_assets', 99);

    I do recommend adding your own styles there 🙂

    Thread Starter Brian Cruikshank

    (@brianbws)

    Thanks! That worked for the login page, but I’ve also added the form using the following to other pages.
    <?php do_action('facebook_login_button');?>

    How do I get rid of css there?

    Btw, on the description and installation tab of this plugin you have an extra do_action:
    <?php do_action('<?php do_action('facebook_login_button');?>

    Plugin Author Damian

    (@timersys)

    In that case use wp_enqueue_scripts as originally.

    I will fix description thanks!

    Plugin Author Damian

    (@timersys)

    Soory use the following instead:

    function remove_assets() {
        wp_dequeue_style('facebook-login');
        wp_deregister_style('facebook-login');
    }
    add_action('facebook_login_button', 'remove_assets', 99);

    Thread Starter Brian Cruikshank

    (@brianbws)

    That was it! Thank you so much!

    Note: the double “do action” is still there on https://ww.wp.xz.cn/plugins/wp-facebook-login/

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove the default css’ is closed to new replies.