Search.../

closeCommentBoxes( )

Closes all comment boxes on the WixComments element.

Description

The closeCommentBoxes() function closes all open comment boxes.

A comment box is the the input area where visitors can write comments.

There can be up to two comment boxes on the WixComments element. They are displayed at the top and bottom of the element.

Syntax

function closeCommentBoxes(): Promise<void>

closeCommentBoxes Parameters

This function does not take any parameters.

Returns

Return Type:

Promise<void>

Related Content:

Was this helpful?

Close all comment boxes

Copy Code
1$w("#myCommentsWidget").closeCommentBoxes();