Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing buddypress from wp_head


  • waveint
    Participant

    @waveint

    Is there anyway to remove buddypress css/js/link from wp_head? or remove certain items from it?

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

  • modemlooper
    Moderator

    @modemlooper

    do you want to edit css or just get rid of it all together? You can add blank files. Adding these files will override bp’s files. If they are blank nothing gets loaded:

    yourtheme/css/buddypress.css
    yourtheme/js/buddypress.js

    Or try and remove hook action:

    remove_action(‘bp_enqueue_styles’);
    remove_action(‘bp_enqueue_scripts’);


    waveint
    Participant

    @waveint

    Thanks modemlooper that was a great help…

    However i still get all this loaded into the head?

    <link rel='stylesheet' id='bp-legacy-css-css'  href='http://tempwp/wp-content/plugins/buddypress/bp-templates/bp-legacy/css/buddypress.css?ver=1.7.3' type='text/css' media='screen' />
    
    	<script type="text/javascript">var ajaxurl = 'http://tempwp/wp-admin/admin-ajax.php';</script>
    
    	<link rel="alternate" type="application/rss+xml" title="Template WP | Site Wide Activity RSS Feed" href="http://tempwp/activity/feed/" />
    
    		<script type="text/javascript" charset="utf-8">
    			/* <![CDATA[ */
    			var ajaxurl = 'http://tempwp/wp-admin/admin-ajax.php';
    			/* ]]> */
    		</script>
    
    	<link rel='canonical' href='http://tempwp/members/' />
    
    	<script type="text/javascript">
    		jQuery( document ).ready( function() {
    			jQuery( 'a.confirm').click( function() {
    				if ( confirm( 'Are you sure?' ) )
    					return true; else return false;
    			});
    		});
    	</script>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing buddypress from wp_head’ is closed to new replies.
Skip to toolbar