June 4, 2018 at 18:43
#199883
Moderator
Hi,
Your host doesn’t seem to work too well with the new WordPress code editor so I cannot update your functions.php file via the back-end.
I can see that all of the content from functions.php has been removed, including the opening php tag, which would cause the error you were seeing.
You need to add the below original text back into the functions.php file via SFTP / FTP or your hosts file browser for this file to work properly
COPY CODE
<?php
/**
* @package WordPress
* @subpackage BuddyApp
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since BuddyApp 1.0
*/
/**
* BuddyApp Child Theme Functions
* Add custom code below
*/
Once you have added this code you can then add the WP Engine fix below it on a new line, like so
COPY CODE
<?php
/**
* @package WordPress
* @subpackage BuddyApp
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since BuddyApp 1.0
*/
/**
* BuddyApp Child Theme Functions
* Add custom code below
*/
add_action( 'wp_enqueue_scripts', 'load_buddypress_js' );
function load_buddypress_js () {
if (bp_is_group() || is_page( 'activity' )) {
wp_enqueue_script('buddypress_query',plugins_url() . '/buddypress/bp-core/js/jquery-query.min.js',array("jquery"));
wp_enqueue_script('buddypress_members',plugins_url() . '/buddypress/bp-core/js/widget-members.min.js',array("jquery"));
wp_enqueue_script('buddypress_cookie',plugins_url() . '/buddypress/bp-core/js/jquery-cookie.min.js',array("jquery"));
wp_enqueue_script('buddypress_scroll', plugins_url() . '/buddypress/bp-core/js/jquery-scroll-to.min.js', array("jquery"));
wp_enqueue_script('buddypress_js',get_template_directory_uri() . '/buddypress/js/buddypress.min.js',array("jquery"));
}
}
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution