• I want to add my custom social buttons to all “pages” except buddypress pages.
    I tried the code below but it didn’t work:

    add_action( 'woo_content_after', 'custom_social_buttons_page', 1 );
    function custom_social_buttons_page() {
    if ( is_buddypress( )) {
         //do nothing
    	}
       else ( is_page()) {
          ds_social_media_buttons();
    	}
    }

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    also try support forum of buddypress:
    https://buddypress.org/support/

    Thread Starter Stephen B

    (@wordpmoon12)

    I think there’a something else going on with my code,
    It’s enough if I can just disable the code on certain page using ID so I tried the following code, however, I got a blank page.

    add_action( 'woo_content_after', 'custom_social_buttons_page', 1 );
    function custom_social_buttons_page() {
    if ( is_page ( 783 )) {
         //do nothing
    	}
       else ( is_page()) {
          ds_social_media_buttons();
    	}
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using conditional tag page_is with Buddypress’ is closed to new replies.