Woopress TOP BAR "Register" button missing

This topic has 5 replies, 3 voices, and was last updated 7 years, 5 months ago ago by Eva Kemp

  • Avatar: BRNVeebilahendused
    BRNVeebilahendused
    Participant
    November 21, 2016 at 21:32

    Hello

    I had Woopress top bar REGISTER button, but now it is lost. I maybe wanted to close it at first (dunno how I might do it), but now I don’t see the possibility where to open this function again.

    I located this code in /htdocs/wp-content/themes/woopress/framework/theme-functions.php:

    <?php if(!empty($reg_id)): ?>
    <li class="register-link">
    <a>"><?php _e( 'Register', ETHEME_DOMAIN ); ?></a>
    <?php if($popups) : ?>
    <div class="register-popup">
    <div class="popup-title">
    <span><?php _e( 'Register Form', ETHEME_DOMAIN ); ?></span>
    </div>
    <?php et_register_form(); ?>
    </div>
    <?php endif; ?>
    </li>
    <?php endif; ?>

    If i remove the<?php if(!empty($reg_id)): ?>statement, the Register button appears. But adding a new account won’t work! Please help.

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: BRNVeebilahendused
    BRNVeebilahendused
    Participant
    November 21, 2016 at 21:38

    Okay, the registration actually works this way, but what is that IF function. Can I just remove it and leave it removed?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 22, 2016 at 19:48

    Hello,

    If you edited parent theme-functions.php file, we recommend you to reupload it from the original theme package. In future please make all changes in the child theme https://codex.wordpress.org/Child_Themes not to lose modifications after theme update.

    Best regards,
    Jack Richardson.

    Avatar: BRNVeebilahendused
    BRNVeebilahendused
    Participant
    November 22, 2016 at 20:28

    I already tried this. Default theme-functions.php file is the one which hides the “REGISTER” button.

    If i remove the if statement <?php if(!empty($reg_id)): ?>, then the button appears. Is it OK to remove this? What does it do?

    Avatar: Eva
    Eva Kemp
    Support staff
    November 22, 2016 at 20:35

    Hello,

    It means that you have to enable the option “Anyone can register” in Settings > General > Membership. Please do this and check Register button after that.

    Regards,
    Eva Kemp.

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.