Support » Plugins and Hacks » Simple Facebook Connect: Hide connect button after login?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    This worked perfectly, thanks! Great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Simple Facebook Connect: Hide connect button after login?’ is closed to new replies.