Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    You are welcome!

  • Keymaster
    (BuddyDev Team)
    Posts: 25384
    Brajesh Singh on in reply to: Remove overlapping link on -forgot password- page #47324

    Hi Daniel,
    your css is correct. You are probably putting it in additional css section of your customizer. That is not loaded on login page.

    You may use the following code to force it to be loaded on login screen

    
    add_action( 'login_footer', function () {
    	?>
    	<style type="text/css">
            body.login div#login h1 a {
                display: none;
            }
    	</style>
    	<?php
    } );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Daniel,
    The above code is for your login page and not applicable for site’s other pages.

    The change needs to go into your theme/child theme somewhere.

    It is a minor task, please provide your FTP access and I will take care of it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Tosin,
    You can use

    
    bp_is_user_change_avatar()
    

    for that purpose.

    @danieleherat
    Thank you.

    You can put it in wp-contet/plugins/bp-custom.php

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384
    Brajesh Singh on in reply to: [Resolved] BuddyPress admin Actvity hide #47321

    Hi,
    Thank you for the question.

    Please share your BuddyPress version and any changes you have made recently.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Thank you for confirming Tosin.

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Tosin,
    You will need to contact perfmatters about the defer.

    Here is slightly modified script to avoid redirect on deletion.

    
    add_action( 'bp_enqueue_scripts', function () {
    	// you can set the url value to anything.
    	$url = site_url( '/refer-friends/' );
    	ob_start();
    	?>
        bp.Avatar.Attachment.on( 'change:url', function( data ) {
        if( data.get('object') == 'user' && 'deleted' !== data.get('action') ) {
        window.location="<?php echo esc_url( $url ); ?>";
        }
        } );
    	<?php
    	$script = ob_get_clean();
    	wp_add_inline_script( 'bp-avatar', $script, 'after' );
    }, 100 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384
    Brajesh Singh on in reply to: Remove overlapping link on -forgot password- page #47299

    Hi Daniel,
    I am sorry, i don’t see any way.

    Your logo is set as background on that element and if we hide it(display:none or visbility:hidden, your logo is hidden too.

    You should contact the theme authors as this is not the default WordPress behaviour.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Tom,
    Thank you.

    I am sorry, i am not familiar with that theme, so I am unable to provide a php snippet.

    Please try to use this css and see if it works.

    
    body.settings.bp-user #item-header {
    	display:none !important;
    }
    
    

    This is not the best one as it simply hides the elements but does not remove them from the actual markup but should serve your purpose.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Amanda,
    Welcome to BuddyDev.

    If you don’t need account settings, I will suggest disabling it in BuddyPress settings.

    You can visit Dashboard->Settings->BuddyPress and under “Components”, you can untick ”
    Account Settings” and save.

    That is the correct way to disable account settings.

    If you only want to hide it and not disable it, you may use the following css

    
    
    #settings-personal-li,
    #wp-admin-bar-my-account-settings {
     display: none !important;
    }
    
    

    Regards
    Brajesh