WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. boonesimpson
    Member
    Posted 10 months 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;
    
    	}

    http://wordpress.org/extend/plugins/disqus-comment-system/

  2. thrivingnow
    Member
    Posted 3 months ago #

    Did you ever figure out a way?

  3. boonesimpson
    Member
    Posted 3 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic