WordPress.org

Support

Support » Plugins and Hacks » How to add comments title

How to add comments title

  • Abu
    Participant

    @absikandar

    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Abu
    Participant

    @absikandar

    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.]

    Abu
    Participant

    @absikandar

    looks like this plugin is not being supported anymore ..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add comments title’ is closed to new replies.