WordPress.org

Forums

Facebook
How to add comments title (3 posts)

  1. Abu Bakar
    Member
    Posted 9 months ago #

    Hi.
    Nice plugin but I can't see any option to put Comments Title before facebook comments box.
    In the developers sections it says we need to make it work using Filters and Hooks.
    I am not expert in wordpress hooks and filters.
    Can you please tell me an easier way to do so ...

    here is what the documentation says...

    facebook_wp_comments_title

    The Facebook plugin for WordPress implementation of the Comments Box social plugin overrides your WordPress theme's comments template including the displayed title of the comments section. Act on the string value passed to this filter to affect the inner text of h2.comments-title inside the custom comments template.

    https://wordpress.org/plugins/facebook/

  2. Abu Bakar
    Member
    Posted 9 months ago #

    I have tried the following code but it did not work.
    Any recommendations on it ?

    function my_custom_filter( $title ) {
        $title = 'Your title goes here';
        return $title;
    }
    add_filter( 'facebook_wp_comments_title', 'my_custom_filter' );

    [Moderator Note: No bumping, thank you.]

  3. Abu Bakar
    Member
    Posted 9 months ago #

    looks like this plugin is not being supported anymore ..

Reply

You must log in to post.

About this Plugin

  • Facebook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic