Skip to:
Content
Pages
Categories
Search
Top
Bottom

Optimizing buddypress files


  • honoluluman
    Participant

    @honoluluman

    Hello, on my website i am using only 3 buddypress pages -> Members page , Registration page, Activation page, and i have this installation https://prnt.sc/1003nc1

    I would like to remove all the following js and css that are running on all the pages of the site:

    wp-content/plugins/buddypress/bp-core/js/confirm.min.js
    wp-content/plugins/buddypress/bp-core/js/widget-members.min.js
    wp-content/plugins/buddypress/bp-core/js/jquery-query.min.js
    wp-content/plugins/buddypress/bp-core/js/vendor/jquery-cookie.min.js
    wp-content/plugins/buddypress/bp-core/js/vendor/jquery-scroll-to.min.js

    and

    wp-content/plugins/buddypress/bp-members/css/blocks/member.min.css
    wp-content/plugins/buddypress/bp-members/css/blocks/members.min.css

    and just keep them on those 3 pages for logged out users.
    I know that i could use a statement like if ( !is_user_logged_in() ) but i dont know the handlers for those js and css and i dont know how would be the process to deregister / enqueue them.

    I think the members page and subpages can be declared with bp_is_my_profile() ?

    I am sorry for the luck of knowledge but i am still new and learning on those stuff.

    Any help please would be appriciated. thank you 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar