WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Activity Plus
[resolved] Hide buttons until user clicks in the text box (2 posts)

  1. NickMackz
    Member
    Posted 3 months ago #

    Is it possible to make it so the buttons don't appear until the user has clicked in the text box? This happens with the Post Update button.

    Thanks

    https://wordpress.org/plugins/buddypress-activity-plus/

  2. WPMU DEV
    Member
    Posted 3 months ago #

    Hi @NickMackz,

    Greetings and thanks for posting on the forums.

    You can achieve this by adding following CSS code in the style.css file and the PHP code in functions.php file of your child theme.

    Add it in the style.css file:

    .bpfb_actions_container {
    	display: none;
    }

    Add it in the functions.php file:

    function add_custom_bpfb_script(){ ?>
    		<script type="text/javascript">
    			jQuery('document').ready(function(){
    				jQuery('#whats-new').focus(function() {
    					jQuery('.bpfb_actions_container').fadeIn();
    				});
    			});
    		</script>
    <?php }
    add_action('wp_footer', 'add_custom_bpfb_script');

    Best Regards,
    WPMU DEV

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.