ZenphotoCMS Forum
ZpFocus13- Comments handling - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: ZpFocus13- Comments handling (/thread-7477.html)



ZpFocus13- Comments handling - huogas - 2010-08-14

In ZpFocus13 theme, would it be possible to add an argument to toggleComments() in order to tell the function to start expanded or not expanded ? Is it simple ? Can I do it (then it has to be very simple...) ?

Gaston


ZpFocus13- Comments handling - fretzl - 2010-08-14

You could try this:
In the ZpFocus theme folder find `header.php`.
There is this function:
`
<script type="text/javascript">
$(document).ready(function() {
$('#comment-toggle').click(function() {
$('#comments-block').slideToggle(600);
});
});
</script>
`
.

Change that to:
`
<script type="text/javascript">
$(document).ready(function() {
$('#comments-block').show();
$('#comment-toggle').click(function() {
$('#comments-block').slideToggle(600);
});
});
</script>
`
.
to start with comments visible.


ZpFocus13- Comments handling - huogas - 2010-08-16

I was on something else for a few days, and just saw your answer.
I tried it immediately and ... it works perfectly.

Thanks you very much fretzl

Gaston