Disqus Comment System
Disqus Hooks? (Genesis Theme) (3 posts)

  1. boonesimpson
    Posted 3 years ago #

    I am accustomed to using the Genesis "above comments" and "Below comments" hooks as a way to inject various bit of code (adsense, custom code, widgets, etc).

    I recently switched to Disqus since I love the service, but they complete overwrite the default genesis/wordpress comment php. This kills the hooks.

    So I am curious is there is a way to add an action or filter to tap into disqus?

    Below is a crude example that doesn't work.

    add_filter('dsq_comments_template', 'commentwrap', 10, $origcontent);
    	function commentwrap($origcontent) {
    	$mytestvar = "<div><!----></div>";
    	$commentoutput = $mytestvar.$origcontent.$mytestvar;
    	return $commmentoutput;


  2. thrivingnow
    Posted 2 years ago #

    Did you ever figure out a way?

  3. boonesimpson
    Posted 2 years ago #

    not the way I wanted to.

    I ended up using "genesis_after_post_content" hook, instead of "before_comment"

    It works for my purposes, but I was really hoping to have more control over the disqus output.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Disqus Comment System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic