Fix Multicollab Bug Where You Can't Click and Add a Comment

Updated 02/19/2024, Posted 02/19/2024 by James Parsons James Parsons 0 Comments

Multicollab is a fantastic WordPress plugin that adds much-needed Google Drive style collaboration to WordPress.

Comments In Wordpress Annotations

But, the free plugin currently (as of February 2024) has a bad bug: a floating div that covers the comments input field and prevents you from being able to click into them.

Now, the plugin is still technically usable because adding a new comment will auto-focus on the input field, even though it exists below a transparent div that is covering it. So, as long as you start typing right away and finish your thought in one swoop, it will save just fine.

But, if you click anywhere else outside of the input field and try to click back, you will see nothing is happening. That's because you're not clicking the input field at all; you're clicking that transparent div that's blocking the entire section.

To illustrate in code:

<div class="editor-styles-wrapper block-editor-writing-flow" tabindex="0" style="height: 100%;" contenteditable="false">

  <div id="cf-comments-suggestions__parent">
      <div id="cf-span__comments">
        <!-- This is the comment you're trying to click -->
      </div>
  </div>
  
  <div id="cf-comments-suggestions__parent">
    <!-- This is the empty div you're clicking instead -->
  </div>

</div>
  

I noticed that this is a sporadic bug, too. I believe it needs at least one note saved, and then you have to try to add another. Sometimes it shows up for me, sometimes it doesn't. But it was annoying enough for me to post a fix that hopefully helps you!

Here's the fix; simply add a plugin like Admin CSS Mu and plop this in there:

/* Fix Multicollab issue where editorial comments weren't selectable due to a duplicate floating div covering input fields */

.block-editor-writing-flow .cf-comments-suggestions__parent:last-child {
	display: none;
}

Or, if you want to avoid adding a new WordPress plugin, you can add this to your functions.php file:

// Fix Multicollab by hiding floating div that is blocking input fields

function load_custom_admin_style() {
    $custom_css = "
        .block-editor-writing-flow .cf-comments-suggestions__parent:last-child {
            display: none;
        }
    ";
    wp_add_inline_style( 'wp-admin', $custom_css );
}
add_action( 'admin_enqueue_scripts', 'load_custom_admin_style' );

This seems to have fixed the issue for me. I can now select these and add comments as intended.

Please let me know if this helped you!

Related Code Snippets

Written by James Parsons

Hi, I'm James Parsons! I founded Content Powered, a content marketing agency where I partner with businesses to help them grow through strategic content. With nearly twenty years of SEO and content marketing experience, I've had the joy of helping companies connect with their audiences in meaningful ways. I started my journey by building and growing several successful eCommerce companies solely through content marketing, and I love to share what I've learned along the way. You'll find my thoughts and insights in publications like Search Engine Watch, Search Engine Journal, Forbes, Entrepreneur, and Inc, among others. I've been fortunate to work with wonderful clients ranging from growing businesses to Fortune 500 companies like eBay and Expedia, and helping them shape their content strategies. My focus is on creating optimized content that resonates and converts. I'd love to connect – the best way to contact me is by scheduling a call or by email.