Member
Member
huogas   2010-08-14, 13:29
#1
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
Administrator
Administrator
fretzl   2010-08-14, 14:49
#2
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.
Member
Member
huogas   2010-08-16, 16:43
#3
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
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.