WordPress.org

Forums

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

  1. NickMackz
    Member
    Posted 1 year 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 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Activity Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.