Title: I cannot comment
Last modified: May 19, 2021

---

# I cannot comment

 *  Resolved [iacobustime](https://wordpress.org/support/users/iacobustime/)
 * (@iacobustime)
 * [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/)
 * Hello
    Something very curious happens to me. My users when they want to add a
   comment and click on the “comment” icon, instead of being able to comment, the
   page scrolls to the top. Why does this happen? Thank you very much.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Support [Youzify](https://wordpress.org/support/users/kainelabsteam/)
 * (@kainelabsteam)
 * [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/#post-14458899)
 * Hello [@iacobustime](https://wordpress.org/support/users/iacobustime/),
 * Thanks for using our plugin.
 * Based on our experience this usually happens because our buddypress.min.js file
   is being overridden or not called on the page.
 * Here’s The code snippet below, please add it to the file “bp-custom.php” in the
   path “wp-content/plugins” :
 *     ```
       <?php
       function yz_fix_wpengine_scripts_fix () {
   
       	if ( bp_is_group() || is_page( 'activity' ) || bp_is_activity_directory() ) {
       		wp_enqueue_script( 'buddypress_query',BP_PLUGIN_URL . 'bp-core/js/jquery-query.min.js',array( 'jquery' ) );
       		wp_enqueue_script( 'buddypress_cookie',BP_PLUGIN_URL . 'bp-core/js/vendor/jquery-cookie.min.js',array( 'jquery' ) );
       		wp_enqueue_script( 'buddypress_js', YOUZIFY_ASSETS . 'js/buddypress.min.js',array( 'jquery' ));
       		wp_enqueue_script( 'buddypress_scrollto',BP_PLUGIN_URL . 'bp-core/js/vendor/jquery-scroll-to.min.js',array( 'jquery' ) );
   
   
       		$params = apply_filters( 'bp_core_get_js_strings', array(
       			// Strings for display.
       			'accepted'            => __( 'Accepted', 'buddypress' ),
       			'close'               => __( 'Close', 'buddypress' ),
       			'comments'            => __( 'comments', 'buddypress' ),
       			'leave_group_confirm' => __( 'Are you sure you want to leave this group?', 'buddypress' ),
       			'mark_as_fav'	      => __( 'Favorite', 'buddypress' ),
       			'my_favs'             => __( 'My Favorites', 'buddypress' ),
       			'rejected'            => __( 'Rejected', 'buddypress' ),
       			'remove_fav'	      => __( 'Remove Favorite', 'buddypress' ),
       			'show_all'            => __( 'Show all', 'buddypress' ),
       			'show_all_comments'   => __( 'Show all comments for this thread', 'buddypress' ),
       			'show_x_comments'     => __( 'Show all comments (%d)', 'buddypress' ),
       			'unsaved_changes'     => __( 'Your profile has unsaved changes. If you leave the page, the changes will be lost.', 'buddypress' ),
       			'view'                => __( 'View', 'buddypress' ),
   
       			// Settings.
       			'store_filter_settings' => apply_filters( 'bp_legacy_store_filter_settings', is_user_logged_in() ),
       		) );
       		wp_localize_script( 'buddypress_js', 'BP_DTheme', $params );
       	}
       }
   
       add_action( 'wp_enqueue_scripts', 'yz_fix_wpengine_scripts_fix'  );
       ```
   
 * Ps: if you didn’t find the file “bp-custom.php”, just create a new one.
 * Let me know if this worked fine for you 🙂
 * Best Regards, KaineLabs Team.
 *  Thread Starter [iacobustime](https://wordpress.org/support/users/iacobustime/)
 * (@iacobustime)
 * [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/#post-14459881)
 * Hello, it did not work.
    The “bp-custom.php” file did not exist and I had to 
   create it. I have added the code you indicate, but it still does not work.
 *  Plugin Support [Youzify](https://wordpress.org/support/users/kainelabsteam/)
 * (@kainelabsteam)
 * [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/#post-14459950)
 * Which theme and hosting you are using?
 * Also please send me a screenshot of where you added the bp-custom.php file and
   a screenshot for the file content.
 *  Thread Starter [iacobustime](https://wordpress.org/support/users/iacobustime/)
 * (@iacobustime)
 * [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/#post-14460037)
 * Theme: Illdy Versión: 2.1.9
    Hosting: Dinahosting.
 * I don’t know how to add images here, sorry
 *  Plugin Support [Youzify](https://wordpress.org/support/users/kainelabsteam/)
 * (@kainelabsteam)
 * [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/#post-14460171)
 * You can upload it on [https://pasteboard.co/](https://pasteboard.co/) and share
   the links with us 🙂
 *  Thread Starter [iacobustime](https://wordpress.org/support/users/iacobustime/)
 * (@iacobustime)
 * [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/#post-14460788)
 * Ok:
    [https://pasteboard.co/K2ItM2n.png](https://pasteboard.co/K2ItM2n.png) [https://pasteboard.co/K2Iuc6V.png](https://pasteboard.co/K2Iuc6V.png)
 *  Plugin Support [Youzify](https://wordpress.org/support/users/kainelabsteam/)
 * (@kainelabsteam)
 * [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/#post-14464774)
 * Thanks [@iacobustime](https://wordpress.org/support/users/iacobustime/) for the
   screenshots, actually you added the code right.
 * It will be hard to locate the problem as we need to debug the site, but I will
   try to download the theme and test it. Hope I can replicate the problem to solve
   it so I can share the solution with you.
 * I will get back to you as soon as possible 🙂
 *  Plugin Support [Youzify](https://wordpress.org/support/users/kainelabsteam/)
 * (@kainelabsteam)
 * [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/#post-14464992)
 * Hi [@iacobustime](https://wordpress.org/support/users/iacobustime/),
 * I installed the theme and I was able to comment successfully so I think the conflict
   is coming from something else
 * Also, I found that theme has some Javascript errors that need to be fixed as 
   they might be a potential problem that prevents some javascript code from being
   called on the page.
 * Can you please consider investing in a pro version and so our team can access
   your site to debug the issue and locate the source of the problem so we can resolve
   it?
 * Waiting for your reply.
 * Best Regards, KaineLabs.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘I cannot comment’ is closed to new replies.

 * ![](https://ps.w.org/youzify/assets/icon-256x256.png?rev=2487434)
 * [Youzify – BuddyPress Community, User Profile, Social Network & Membership Plugin for WordPress](https://wordpress.org/plugins/youzify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youzify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youzify/)
 * [Active Topics](https://wordpress.org/support/plugin/youzify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youzify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youzify/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Youzify](https://wordpress.org/support/users/kainelabsteam/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/i-cannot-comment/#post-14464992)
 * Status: resolved