Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1108467
    seandimond
    Participant

    Hi,

    For this page: http://www.forbetter.us/marriage-in-motion

    I am using Integrity… Blank – No Container | Header, Footer

    I want to create a new section that serves as a comment section using the Disqus plugin.

    From a previous post I added the below code to functions.php and it DOES allow me to use the WordPress comments tool. But NOT the Disqus tool. I want to use Disqus, not WordPress. Thanks.

    add_shortcode(‘x_comment_embed’, ‘x_comment_embed’);

    function x_comment_embed ( $atts ) {

    ob_start();

    if ( post_password_required() )
    return; // 1

    ?>

    <div id=”comments” class=”x-comments-area”>

    <?php if ( have_comments() ) : ?>

    <h2 class=”h-comments-title”><span><?php _e( ‘Comments’ , ‘__x__’ ); ?> <small><?php echo number_format_i18n( get_comments_number() ); ?></small></span></h2>

      <?php
      wp_list_comments( array(
      ‘callback’ => ‘x_integrity_comment’,
      ‘style’ => ‘ol’
      ) );
      ?>

    <?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : ?>
    <nav id=”comment-nav-below” class=”navigation” role=”navigation”>
    <h1 class=”visually-hidden”><?php _e( ‘Comment navigation’, ‘__x__’ ); ?></h1>
    <div class=”nav-previous”><?php previous_comments_link( __( ‘← Older Comments’, ‘__x__’ ) ); ?></div>
    <div class=”nav-next”><?php next_comments_link( __( ‘Newer Comments →’, ‘__x__’ ) ); ?></div>
    </nav>
    <?php endif; ?>

    <?php if ( ! comments_open() && get_comments_number() ) : ?>
    <p class=”nocomments”><?php _e( ‘Comments are closed.’ , ‘__x__’ ); ?></p>
    <?php endif; ?>

    <?php endif; ?>

    <?php
    comment_form( array(
    ‘comment_notes_after’ => ”,
    ‘id_submit’ => ‘entry-comment-submit’,
    ‘label_submit’ => __( ‘Submit’ , ‘__x__’ )
    ) );
    ?>

    </div>

    <?php return ob_get_clean(); }

    #1108489
    Lely
    Moderator

    Hi There,

    Thanks for posting in. Please do make sure that Disqus Comments is enabled from Addons > Disqus Comments and settings are set correctly. See attached screenshot.

    Hope this helps.

    #1110363
    seandimond
    Participant

    I have done that. Comments are appropriately enabled. And for this page, in Cornerstone I have added a new section, raw content, and specified [x_comment_embed]. And comments show up, but not Disqus comments.

    HOWEVER, Disqus comments DO show up in my blog, and on other pages where I’ve enabled comments.

    What I want is to create a unique section/row on a unique page, and allows Disqus comments within that section.

    How to make this happen? Did I use the right functions.php code?

    #1110371
    seandimond
    Participant
    This reply has been marked as private.
    #1110386
    seandimond
    Participant
    This reply has been marked as private.
    #1110605
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    For the meantime, perhaps this link might help you:
    http://code.tutsplus.com/tutorials/integrating-disqus-into-wordpress–wp-25799

    Thanks for understanding. Take care!

    #1110612
    seandimond
    Participant

    Thanks for the response.

    Can I enable Disqus comments on a single individual page? Or are Disqus comments only usable as a replacement for blog post comments?

    If not, are there any Forum plugins you might recommend that are compatible w/ X?

    I definitely want to keep using X… but need to be able to offer comments on pages, not just posts. Thanks.

    #1110693
    Christopher
    Moderator

    Hi there,

    If you enable Disqus comments it will be displayed instead of wordpress comment form.
    As we don’t provide support for third party plugin, we can’t guarantee which plugins are fully compatible with X.

    Thanks.

    #1111130
    seandimond
    Participant

    But that’s my problem. I’ve enabled Disqus, but they’re not showing up on an individual page. Please see:

    http://forbetter.us/marriage-in-motion/

    At the bottom you can see a comments section, but it’s not Disqus. If I could fix this, my problems would be greatly alleviated.

    Can you tell why Disqus comments are showing up on my blog, but not on any pages?

    #1111184
    seandimond
    Participant

    Ok, since this doesn’t work I’m going to disable ‘allow comments’ on this page, and just build a separate forum using bbpress.

    #1111431
    Rad
    Moderator

    Hi there,

    It’s because your page has Blank template while blog posts doesn’t have that. Comment and disqus is only available on standard templates, not on other templates such us blank or similar.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1108467 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>