WordPress.org

Forums

Facebook
Hide facebook comments and like buttons in mobile sites (2 posts)

  1. iYannis
    Member
    Posted 1 year ago #

    hide the annoying like button and the comments in mobile view
    go to ..path_to/wp-content/plugins/facebook/social-plugins
    and change this files:
    comments.php
    social-plugins.php

    insert the code

    <?php if ( wp_is_mobile() )  {
    /* Display mobile specific stuff hardcoded by iYannis.gr*/
    } else {
     /* here goes the facebook code */
     ?-->

    I hope in the next version be as an option this hack

    http://wordpress.org/plugins/facebook/

  2. Niall Kennedy
    Member
    Plugin Author

    Posted 1 year ago #

    Why not remove the equivalent filters instead and add your own functions through a filter instead? Filters added during the wp action at default priority (10). Much cleaner than modifying the plugin code directly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic