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

  1. George_ER
    Posted 2 years 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!



  2. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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'));
                add_filter('the_content', array($socializeWPfrontend, 'insert_socialize'));

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic