Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • albert101
    Participant

    @albert101

    Hello.
    Thanks for your time I think it is an issue I will have to take up with the theme creator
    since the problem is certainly theme related I wish to not waste any precious time of yours
    Regards


    albert101
    Participant

    @albert101

    Thanks i was just in the process of trying that will keep you posted.
    i am reading up on buddypress customization.
    Thanks


    albert101
    Participant

    @albert101

    Hello again cut and pasted the code exactly on the last line of the theme functions php and
    my debug log output is as follows.
    I must be doing something wrong.

    [10-Sep-2014 19:54:06 UTC] PHP Fatal error: Call to undefined function bp_is_activity() in /Applications/MAMP/htdocs/wordpress/wp-content/themes/mytheme/functions.php on line 4618
    [10-Sep-2014 19:54:06 UTC] PHP Stack trace:
    [10-Sep-2014 19:54:06 UTC] PHP 1. {main}() /Applications/MAMP/htdocs/wordpress/wp-admin/index.php:0
    [10-Sep-2014 19:54:06 UTC] PHP 2. require_once() /Applications/MAMP/htdocs/wordpress/wp-admin/index.php:10
    [10-Sep-2014 19:54:06 UTC] PHP 3. require_once() /Applications/MAMP/htdocs/wordpress/wp-admin/admin.php:204
    [10-Sep-2014 19:54:06 UTC] PHP 4. do_action() /Applications/MAMP/htdocs/wordpress/wp-admin/admin-header.php:108
    [10-Sep-2014 19:54:06 UTC] PHP 5. call_user_func_array:{/Applications/MAMP/htdocs/wordpress/wp-includes/plugin.php:505}() /Applications/MAMP/htdocs/wordpress/wp-includes/plugin.php:505
    [10-Sep-2014 19:54:06 UTC] PHP 6. print_head_scripts() /Applications/AMP/htdocs/wordpress/wp-includes/plugin.php:505
    [10-Sep-2014 19:54:06 UTC] PHP 7. do_action() /Applications/MAMP/htdocs/wordpress/wp-includes/script-loader.php:773
    [10-Sep-2014 19:54:06 UTC] PHP 8. call_user_func_array:{/Applications/MAMP/htdocs/wordpress/wp-includes/plugin.php:505}() /Applications/MAMP/htdocs/wordpress/wp-includes/plugin.php:505
    [10-Sep-2014 19:54:06 UTC] PHP 9. my_dequeue_script() /Applications/MAMP/htdocs/wordpress/wp-includes/plugMin.php:505


    albert101
    Participant

    @albert101

    Hi again.
    sorry guys you are dealing with a total amateur here.
    I should be adding the lines in the theme functions file or in the appropriate bp functions.
    I get a blank page.
    Would the code chunk go after the enqueue line I mentioned?
    If you give up on me I would understand.


    albert101
    Participant

    @albert101

    I barely checked my mail and got the first Mess that Henry posted using the
    ‘wp_print_scripts’ method.
    I will apply one after the other and will post my results here.
    That is is the least I can do.
    Thanks


    albert101
    Participant

    @albert101

    Thanks a TON
    Not only have you helped me out with the code.But But You gentlemen, have also helped me grasp the concept and better understand the process.
    Regards,
    Albert


    albert101
    Participant

    @albert101

    Hi Thanks for the help.
    Henry and Hugo.
    I Just read the message.

    If I understand correctly should I change the statement:
    function my_dequeue_script() {
    if ( bp_is_activity() )
    wp_dequeue_script( ‘xyz-custom-script’ );
    }
    add_action( ‘wp_print_scripts’, ‘my_dequeue_script’, 100 );
    to something else and if so What would it be in my case.
    Sorry for my ignorance and thanks for you patience.

Viewing 7 replies - 1 through 7 (of 7 total)
Skip to toolbar