-
Author
-
June 2, 2018 at 07:32 #199647lash411Participant
I used your suggested code in the WP ENGINE COMPATIBILITY ARTICLE, amended it to the child theme functions.php file and the code appears on all the pages at the top, pls see screenshot. I have to remove it because it’s an active site, but that’s what it looks like.
Attachments:
You must be logged in to view attached files.June 2, 2018 at 16:13 #199658Kieran_SQModeratorHi,
It looks like it may have been added incorrectly to generate that kind of printing on the front/back end. Can you please share admin credentials for your site, in a private reply, so I can look into this further for you.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf 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.
June 4, 2018 at 18:43 #199883Kieran_SQModeratorHi,
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 solutionIf 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.
June 4, 2018 at 19:58 #199901lash411ParticipantThank you, I have done so and the code does not appear in the top header anymore.
June 4, 2018 at 20:00 #199902Kieran_SQModeratorHi,
Great to hear 🙂 If you have any other questions please feel free to open a new ticket and one of the available support team members will be happy to assist.
All the best,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf 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.
-
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.