remove welcome message (new version)

hi y’all –

so i followed the technique suggested here:

https://wpmudev.com/forums/topic/remove-welcome-message

and on the third to last line of the current header.php managed to remove the sign up button with an “if (is home()) ” but how do i actually get rid of the welcome message too?

it still shows up on the logged in version of home once a member signs in.

all help appreciated!

  • osakasmith
    • WPMU DEV Initiate

    Thanks Phil –

    Yeah, that’s exactly why I am posting here because it didn’t work out that way.

    But, thank you for making me realize I need to be more informative!

    So let me go out and come in again –

    This thread:

    https://wpmudev.com/forums/topic/remove-welcome-message

    Suggests that this line in bp-community/header.php:

    <?php include (TEMPLATEPATH . ‘/call-signup.php’:wink:; ?>

    should be modified to say this:

    <?php if (is_home()) include (TEMPLATEPATH . ‘/call-signup.php’:wink:; ?>

    (thanks to Aaron)

    As that is simply an additional “if” statement that is checking if the current page is the home page and then including call-signup.php only in the instance that someone is requesting the home page i attempted to modify the current version of the header.php file to do the same thing.

    However, as things have changed slightly in the year since the original thread the line that includes call-signup in the current header.php file is this:

    <?php locate_template( array( ‘lib/templates/wp-template/call-signup.php’:wink:, true ); ?>

    I modified the line so that it now reads

    <?php if (is_home()) locate_template( array( ‘lib/templates/wp-template/call-signup.php’:wink:, true ); ?>

    This has a limited effect. The “Sign Up!” button is no longer there after a user is logged in but the Welcome message and the rest of the header is still visible. So I am closer to the intended action but not quite there.

    Any assistance will be greatly appreciated!

    Thanks!

  • osakasmith
    • WPMU DEV Initiate

    Thanks but no, that didn’t change anything – still the same pattern.

    However, I found a different work around via masonjames in this post:

    https://wpmudev.com/forums/topic/removing-welcome-message

    I’ve been going through all of the forum posts related to this theme to see if there are any mods I haven’t thought of or fixes to problems I’m also having BUT I started from the oldest first and hadn’t gotten to his work around yet.

    I’ll give that a shot next.

  • osakasmith
    • WPMU DEV Initiate

    Actually, after a review of the file I realized that the addition of your { } ‘s didn’t get saved correctly.

    After a second edit I got the following error upon login –

    Parse error: syntax error, unexpected ‘{‘, expecting ‘(‘ in ++++/wp-content/themes/bp-community/header.php on line 230

    ( i edited location info by re-writing with ++++ just for this post)

    So that’s a no go –

    Thanks for trying!

  • osakasmith
    • WPMU DEV Initiate

    Alright, maybe I should just stop now.

    I’m thinking coffee was a bad idea this morning. Too much caffeine and I got all bracket happy.

    I removed the extra bracket that got in there and I’m back to the same behavior as before.

    Sorry :slight_frown: !