Optimizing buddypress files
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 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
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 🙂
- You must be logged in to reply to this topic.