Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #125093

    axelra82
    Participant

    Hi all.

    I was wondering if anyone can explain this phenomena where the disqus comment counter is reverted back to 0 once the page seems to be fully loaded?

    here is the working website http://argetfit.se

    PS. Where do I need to put the code I’m using to present author information if I want it to show up bellow comments? I can’t find where the actual comment section is generated 🙂

    #125275

    Nabeel A
    Moderator

    Hi Axelra,

    I tested your couple of posts with comments and it seems fine to me. Can you please provide us the specific link of the post that has this issue?

    #125434

    axelra82
    Participant

    Hi.

    Hmm, ok? The front page for one, argetfit.se. All the entries have 0 (except the last one). But take the first entry, http://argetfit.se/argetfit/jakob-richloow/3059-lanktips-vecka-41
    It says 0 comments (both on front page, and on post page. On post page, I can see 2 comments count one second, then it reverts back to 0)

    #125691

    Zeshan
    Member

    Hi Axelra,

    Thank you for writing in!

    We’re sorry for the confusion. 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, or a service like WerkPress or Elto to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Meanwhile you can follow this article: https://help.disqus.com/customer/portal/articles/565624-tightening-your-disqus-integration

    Thanks for understanding. Take care!

    #125822

    axelra82
    Participant

    NOTE.
    Still wondering about the placing of comments. Where do I change the position of comment field? Where is it generated (what file/line)? Thank you 🙂

    ok, thanks. Although the link didn’t solve the issue in its entirety, it did point me in the right direction. Something is (still not sure what) is conflicting with the disqus comment count. When I leave the fields empty in the disqus admin, the comments are remove from the post entry. So somehow the disqus comment count is “wonky” in wordpress. I solved this by turning of “Output JavaScript in footer” in the disqus plugin settings. Solved it (at least on individual post pages, not index page) for now.

    #126018

    Rad
    Moderator

    Great to hear that Alex 🙂

    And about the comment field position, that is another thing we can’t answer too. You will have to contact a developer or Disqus support for this kind of customization. We’re not related to them nor familiar from their implementation. 🙂

    Thanks for understanding.

    #126129

    axelra82
    Participant

    Hmm, not wondering how disqus works… I’m wondering, where in X the theme files do you call the comments section? I just want to change the order they are presented in 😉

    #126327

    Paul R
    Moderator

    Hi Axel,

    The comments section are located in x\framework\views\{STACK}\wp-comments.php
    If you want to change something you’ll have to do it in a child theme.

    Please check this out http://theme.co/x/member/kb/customization-best-practices/

    Thanks

    #126483

    axelra82
    Participant

    Cool, thank you 🙂 Yes, I’m already using a child theme for my stack, so no worries there 😉

    #126524

    axelra82
    Participant

    *Solved*

    For anyone else out there looking to solve this. Find the following code from _root/wp-content/themes/x-child-{$STACK}/framework/views/global/_comments-template.php

    $stack           = x_get_stack();
    $container_begin = ( $stack == 'icon' ) ? '<div class="x-container-fluid max width">' : '';
    $container_end   = ( $stack == 'icon' ) ? '</div>' : '';
    ?>
    
    <?php if ( comments_open() ) : ?>
      <?php echo $container_begin; ?>
        <?php comments_template( '', true ); ?>
      <?php echo $container_end; ?>
    <?php endif; ?>

    (if you’re not using child theme, just go to …/themes/x/… Although this is not recommended)

    And put it where you want to display your disqus comments. For my purposes I put it in _root/wp-content/themes/x-child-{$STACK}/framework/views/{$STACK}/_content-post-footer.php

    Happy customizing folks 😀

    #126669

    Darshana
    Moderator

    @axelra82

    Glad you were able to resolve it finally and many thanks for sharing your solution with other members.