WordPress Reference
< All Topics
Print

One Community Theme: How to remove the register button from the top menu

Deleting the following line from the theme’s header.php file worked for me:

<a href="<?php echo home_url(); ?>/register" class="header-top-signin tada"><?php esc_attr_e('Register', 'onecommunity'); ?></a>

The code was at line 86 in the file, right after:

<?php if ( !is_user_logged_in() ) { ?>

I obtained this solution from the theme’s comment page on themeforest.net.  The link below includes the search phrase I used.

https://themeforest.net/item/onecommunity-buddypress-theme/3713046/comments?utf8=%E2%9C%93&term=hide+register&from_buyers_and_authors_only=0&order_by=relevance

 

latest Articles

Table of Contents