Title: Where to put comment code?
Last modified: August 30, 2016

---

# Where to put comment code?

 *  [DanielHF](https://wordpress.org/support/users/danielhf/)
 * (@danielhf)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-comment-code/)
 * I want to add facebook comments above where the current disqus comments are.
   
   Disqus comments are below the post via a plugin, so I don’t know where i’d put
   the new facebook comment section code to put it up above there.
 * (Ideally not attached to the post body so that it looks like a normal separate
   widget would)

Viewing 1 replies (of 1 total)

 *  Theme Author [ronangelo](https://wordpress.org/support/users/ronangelo/)
 * (@ronangelo)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-comment-code/#post-6434504)
 * you could use the **frontier_before_comments** action hook.
    On a child-theme
   functions.php you could add something like this:
 *     ```
       add_action( 'frontier_before_comments', 'my_custom_fb_comments' );
   
       function my_custom_fb_comments() {
          // Your code goes here
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Where to put comment code?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/frontier/1.3.3/screenshot.png)
 * Frontier
 * [Support Threads](https://wordpress.org/support/theme/frontier/)
 * [Active Topics](https://wordpress.org/support/theme/frontier/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/frontier/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/frontier/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * 1 reply
 * 2 participants
 * Last reply from: [ronangelo](https://wordpress.org/support/users/ronangelo/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-comment-code/#post-6434504)
 * Status: not resolved