WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
Hide Socialize on Post Category (3 posts)

  1. George_ER
    Member
    Posted 1 year ago #

    Hi, in the new twentythirteen theme there is all types of post formats. Certain ones don't make sense for the socialize section to appear. Can I disable the socialize buttons on certain post formats or categories? Thank you for your time and help!

    Best,
    George

    http://wordpress.org/extend/plugins/jetpack/

  2. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    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.

  3. Jon Bishop
    Member
    Posted 1 year ago #

    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'));
        }
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic