This topic has 5 replies, 2 voices, and was last updated 6 years by Kieran_SQ.

  • Author
  • #199647
     lash411
    Participant

    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.
    #199658
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    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.

    #199879
     lash411
    Participant
    This reply has been set as private.
    #199883
     Kieran_SQ
    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

    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.

    #199901
     lash411
    Participant

    Thank you, I have done so and the code does not appear in the top header anymore.

    #199902
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    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.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?