How to check if registration is enabled and show or hide the buttons!

  • In Progress
    Posted in: BlackFyre  
  • Member
    SevenRichieWhite
    June 9, 2015 at 5:32 pm #62044

    Hello Friends.

    If you want to disable the registration on your site and hide the registration/login button, you can do the following:

    First go to your WP-Adminpanel > Settings > General and disable the checkbox for membership. Save it!

    Now login in to your FTP and go to: wp-content/themes/blackfyre/ or wp-content/themes/YOUR_BLACKFYRE_CHILD_THEME/

    open the header.php with your favorite editor (i use Notepad++).

    find the following line
    <?php if (of_get_option('login_menu')){ ?>
    and paste above
    <?php if ( get_option( 'users_can_register' ) ) { ?>

    find now on line 208
    <?php } ?>
    and paste below
    <?php } ?>

    Now save and overwrite it!
    If you want to enable the registration again, you just move to your WP-Adminpanel > Settings > General and enable the checkbox for membership. The buttons will show on your site if the registration enabled and hide if not.

    I hope this function will be included in future updates, but actually its a good way.

    Cheers 😉

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.