(a) Presence in Courtroom. Generally, in actions of parents against each other, or where the conduct of either parent is an issue, the children should not be allowed in the courtroom during the taking of testimony. (b) Testimony. Children should not be offered as witnesses as to the misconduct of either parent, except, when, in the discretion of the court, it is essential to establish the facts alleged.