-
AuthorPosts
-
October 14, 2014 at 11:42 am #125093
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 🙂
October 14, 2014 at 4:09 pm #125275Hi 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?
October 14, 2014 at 11:53 pm #125434Hi.
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)October 15, 2014 at 9:17 am #125691Hi 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!
October 15, 2014 at 11:51 am #125822NOTE.
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.
October 15, 2014 at 6:20 pm #126018Great 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.
October 15, 2014 at 11:47 pm #126129Hmm, 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 😉
October 16, 2014 at 8:10 am #126327Hi 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
October 16, 2014 at 11:42 am #126483Cool, thank you 🙂 Yes, I’m already using a child theme for my stack, so no worries there 😉
October 16, 2014 at 12:54 pm #126524*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 😀
October 16, 2014 at 5:06 pm #126669 -
AuthorPosts