Tagged: x
-
AuthorPosts
-
July 29, 2016 at 3:05 am #1108467
seandimondParticipantHi,
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(); }
July 29, 2016 at 3:25 am #1108489
LelyModeratorHi 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.
July 30, 2016 at 3:39 pm #1110363
seandimondParticipantI 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?
July 30, 2016 at 3:44 pm #1110371
seandimondParticipantThis reply has been marked as private.July 30, 2016 at 4:31 pm #1110386
seandimondParticipantThis reply has been marked as private.July 30, 2016 at 10:59 pm #1110605
Rue NelModeratorHello 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-25799Thanks for understanding. Take care!
July 30, 2016 at 11:13 pm #1110612
seandimondParticipantThanks 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.
July 31, 2016 at 1:24 am #1110693
ChristopherModeratorHi 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.
July 31, 2016 at 2:17 pm #1111130
seandimondParticipantBut 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?
July 31, 2016 at 3:50 pm #1111184
seandimondParticipantOk, since this doesn’t work I’m going to disable ‘allow comments’ on this page, and just build a separate forum using bbpress.
July 31, 2016 at 8:51 pm #1111431
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1108467 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
