Support » Plugin: Jetpack by WordPress.com » Hide Socialize on Post Category

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi there!

    The easiest way to do so would be through some custom CSS rules. Can I have some example links of where you’d want to hide it? I’ll have a look and see if I can come up with some simple rules for you.

    Have not tested but you could try something like this:

    add_filter('posts_selection', 'custom_socialize_output');
    function custom_socialize_output(){
        if (class_exists('SocializeFrontEnd')) {
            global $socializeWPfrontend;
            remove_filter( 'the_content', array($socializeWPfrontend, 'insert_socialize'));
            if(is_category('9'))
                add_filter('the_content', array($socializeWPfrontend, 'insert_socialize'));
        }
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Socialize on Post Category’ is closed to new replies.