Theme Author
Paweł
(@mrpauloen)
Hi @jamesscholes
There is a function on line 152
in comments.php
file called: wp_less_is_more__collapse_comments_list ()
that determines whether the list of comments is displayed or hidden.
There are several conditions that determine whether comments are collapsed or not (please read that function description on line 713
to 736
in functions.php
file).
At this time just remove that function and place there: in
, as an additional class.
So, for example, now you have this:
<div id="collapseListComments" class="panel-collapse collapse <?php
echo wp_less_is_more__collapse_comments_list();
?>" role="tabpanel" aria-labelledby="collapseListComments" aria-expanded="true">
And you should have that:
<div id="collapseListComments" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListComments" aria-expanded="true">
Be aware that this is a class selector and you should be careful to close it properly.
For future I will consider adding this option to the customizer or removing it from the code, if it is unnecessary.
You decide.
Cheers! 🙂
Thank you for your reply – appreciate it.
I’m afraid I’m not very versed with coding so what you said was a little hard for me to understand.
So which file was you referring to I make the changes to?
The “comments.php” or “functions.php”?
Also, which line within that file and what do I paste into that line?
Thanks again for taking the time to answer my questions by the way.
Theme Author
Paweł
(@mrpauloen)
In comments.php
file, in this block (on line 152):
<div id="collapseListComments" class="panel-collapse collapse <?php
echo wp_less_is_more__collapse_comments_list();
?>" role="tabpanel" aria-labelledby="collapseListComments" aria-expanded="true">
remove this function:
wp_less_is_more__collapse_comments_list();
so you should get something like this:
<div id="collapseListComments" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListComments" aria-expanded="true">
Thanks for clarifying that.
I removed…
wp_less_is_more__collapse_comments_list();
…from the comment.php but it broke the website and it wasn’t displaying properly afterwards.
The comments were still hidden after removing that line of code as well.
Anymore suggestions?
Theme Author
Paweł
(@mrpauloen)
This is how the contents of the comments.php
file should look like: https://pastebin.com/zUf0CKX6
Do you have the same? Can you show me what did you do?