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 - 14-08-2010

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 - 14-08-2010

You could try this:
In the ZpFocus theme folder find header.php.
There is this function:
`

$(document).ready(function() {
    $('#comment-toggle').click(function() {
    $('#comments-block').slideToggle(600);
    });
});

`
.

Change that to:
`

$(document).ready(function() {
    $('#comments-block').show();
    $('#comment-toggle').click(function() {
    $('#comments-block').slideToggle(600);
    });
});

`
.
to start with comments visible.




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

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