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
<?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
<?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
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.