cdezeeuw
Forum Replies Created
-
Thank for clarifying Daniel. Excellent write-up as well.
Have a good day.
Just a quick ping to see if anyone had thoughts or suggestions for this one.
Thank you.
Forum: Plugins
In reply to: [Collapse-O-Matic] collapsible comments for each post on the front pageHey Biden,
Thanks for the quick reply.
I did check that thread out and tried many examples and in multiple places, none of them worked as expected. That’s when I opened the support thread. I understand you’ll be gone. I am going to remove the code change to display the comments for now as it takes up too much space in its current form. Let me know when you are back and if you would like to explore it then.
Thanks again!
Forum: Plugins
In reply to: [Collapse-O-Matic] collapsible comments for each post on the front pageHey Baden,
Sorry for not providing the details up front, I wanted to see it if was even possible before getting into the code.
I am fairly new when it comes to php and “theme development” but I am willing to try.Site I am working on: http://www.orderofevisceration.com/
Theme I am using: https://ww.wp.xz.cn/extend/themes/grapheneAs you can see, the full comments section is showing for the posts on the front page. I made a change in loop.php to get them to show up.
Original code for the comment section in loop.php:
<?php /* Display comments popup link. */ ?> <?php if ( graphene_should_show_comments() ) : ?> <p class="comment-link"> <?php $comments_num = get_comments_number(); comments_popup_link( __( 'Leave comment', 'graphene' ), __( '1 comment', 'graphene' ), sprintf( _n( '%d comment', "%d comments", $comments_num, 'graphene' ), $comments_num ), 'comments-link', __( "Comments off", 'graphene' ) ); ?> </p> <?php endif; ?>I have modified that block with the following:
<?php /* Display comments popup link. */ ?> <?php if ( graphene_should_show_comments() ) : ?> <p class="comment-link"> <?php global $withcomments; $withcomments = 1; comments_template( '', true ); ?> </p> <?php endif; ?>Any suggestions on how to make that comment section collapsible for each post would be awesome.
Again, sorry for the frustration, was just trying to be respectful. 🙂
Thanks!
Forum: Plugins
In reply to: [Collapse-O-Matic] collapsible comments for each post on the front pageHey there, just seeing if you had any response on this one.
Thanks.