Member
Member
huogas   14-08-2010, 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   14-08-2010, 14:49
#2

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.

Member
Member
huogas   16-08-2010, 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.