Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • jhoward1082
    Member

    @jhoward1082

    Thank you for the direction. I am still quite a newbie at this. I have hacked together what I think a potential solution would be. The problem is, I believe it is loading my “new” style sheet but also the old style sheet as well still which is obviously causing problems. Would someone mind taking a look at my code and tell me how off I am? Thanks again

    I am editing the bp-groups-cssjs.php file and again I am quite new at this and my potential solution may be totally wrong.

    <?php

    /**************************************************************************

    groups_add_js()

    Inserts the Javascript needed for managing groups.

    **************************************************************************/

    function groups_add_js() {

    global $bp;

    if ( $bp == $bp )

    wp_enqueue_script( ‘bp-groups-js’, site_url() . ‘/wp-content/mu-plugins/bp-groups/js/general.js’ );

    }

    add_action( ‘template_redirect’, ‘groups_add_js’ );

    function groups_add_css() {

    global $bp;

    if ( $bp == $bp )

    wp_enqueue_style( ‘groups’, site_url() . ‘/wp-content/mu-plugins/bp-groups/css/style2.css’ );

    wp_print_styles();

    }

    add_action( ‘template_redirect’, ‘groups_add_css’ );

    function groups_add_cropper_js() {

    global $create_group_step;

    if ( $create_group_step == ‘3’ ) {

    wp_enqueue_script(‘jquery’);

    wp_enqueue_script(‘prototype’);

    wp_enqueue_script(‘scriptaculous-root’);

    wp_enqueue_script(‘cropper’);

    add_action( ‘wp_head’, ‘bp_core_add_cropper_js’ );

    }

    }

    add_action( ‘template_redirect’, ‘groups_add_cropper_js’ );

    ?>

Viewing 1 replies (of 1 total)
Skip to toolbar