Support » Plugin: Disqus Comment System » Disqus Hooks? (Genesis Theme)

  • 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;

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you ever figure out a way?

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disqus Hooks? (Genesis Theme)’ is closed to new replies.