WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Simple Facebook Connect: Hide connect button after login? (3 posts)

  1. VermilionDL
    Member
    Posted 3 years ago #

    Hi there! We just installed the plugin on http://overworld.tv. It works as advertised, although it does seem to appear differently between different browsers. The only thing I'm trying to figure out is if there's a way to have the widget disappear once the user is logged in. It still says 'Connect with Facebook', which can be confusing. Thanks!

  2. richboy7
    Member
    Posted 3 years ago #

    Click Edit below 'SFC - Connect Widget'

    Then replace this

    <?php echo $before_widget; ?>
    <?php if ( $title ) echo $before_title . $title . $after_title; ?>
    <?php echo sfc_connect_shortcode(); ?>
    <?php echo $after_widget; ?>

    with this

    <?php if ( ! is_user_logged_in() ){ ?>
    <?php echo $before_widget; ?>
    <?php if ( $title ) echo $before_title . $title . $after_title; ?>
    <?php echo sfc_connect_shortcode(); ?>
    <?php echo $after_widget;} ?>

    Be careful with '}' in the last line of code.

  3. VermilionDL
    Member
    Posted 3 years ago #

    This worked perfectly, thanks! Great plugin!

Topic Closed

This topic has been closed to new replies.

About this Topic