Getting Started

Configuring Threads ​

Comments.configure() gives settings to every thread on the page, such as your design system's button classes, a part override or different wording. It's the same on window.Comments from the plugin's script, on the package's Comments export, and as the configure export on its own. Settings can be given at any time, before or after the threads start, and threads already drawn redraw with them.

js
document.addEventListener('DOMContentLoaded', () => {
    window.Comments.configure({
        theme: 'auto',
        labels: {
            empty: 'Nobody has said anything yet.',
        },
        themeConfig: {
            primaryButton: { resetClass: true, attributes: { class: 'btn btn-primary' } },
        },
    });
});

Every thread on the page switches to the automatic theme, an empty thread says “Nobody has said anything yet.”, and Post and the other main buttons use your btn btn-primary classes in place of Comments' own button styling.

The Settings ​

SettingWhat it does
themeConfigClasses and attributes for the ten controls, covered in themeConfig for Controls.
partsPart overrides by name, covered in Part Overrides.
fieldsCustom field overrides by handle, covered in Field Overrides.
labelsWording to use instead of the site's translations, below.
themelight, dark, auto or none, covered in Dark Mode.
darkSelectorA selector, such as html.dark, that switches every thread to dark while it matches <html>.
loadModeWhen a thread without a load mode of its own loads, covered in Lazy Loading.
loadEditorA function that loads Editor for rich comments, resolving once <verbb-editor> is defined, covered in Bundling in Your Own Build.
authHow the person is identified, from @verbb/comments-core, covered in Signing In. Defaults to Craft's session cookie.
nonceA Content Security Policy nonce for the scripts and stylesheets a thread loads, such as Editor's and the spam protection's challenges.
fetchA fetch to use instead of the global one.

How Settings Combine ​

Each configure() call merges with the ones before it. themeConfig merges control by control and attribute by attribute, parts by part name, fields by handle and by input or display, and labels by key, so a later call can add one part override without losing another. Every other setting is replaced by the latest value given.

A thread can get settings from three places, and later ones win.

  1. Its mount point, from the options passed to craft.comments.render() or set in config/comments.php.
  2. Comments.configure() or startComments().
  3. The thread's own options, from mountThread(), a <verbb-comments> element's properties or a React or Vue component's props.

loadMode is the exception, because a thread's own load mode from render() always wins over configure()'s. auth and fetch are read when a thread starts, so changing them in configure() reaches only threads that start afterwards.

Settings reach threads drawn by the plugin's script, by your own call to startComments(), and by code that mounts threads through @verbb/comments-browser/renderer, such as the web components and the React and Vue packages, including settings given before that code was loaded. Once one copy of the script is running on the page, configure() in another copy passes its settings to the one that's running.

Labels ​

Every word the thread shows comes from the site's translations in Craft's comments category, so changing wording per site and language is usually done with a static translation file, as the plugin's Text & Translations explains. labels is for wording that belongs to your JavaScript rather than your Craft site, such as an app on another domain that wants its own tone. It takes the keys below, and wins over the site's translations.

js
window.Comments.configure({
    labels: {
        post: 'Send',
        editorPlaceholder: 'What do you think?',
        charactersLeft: '{count} to go',
    },
});

Placeholders such as {count} and {name} are filled in by the renderer, so keep them in your wording. A label set to an empty string is ignored, and the site's own wording is used instead.

The keys marked “No” in the last column aren't in Craft's translation list. The renderer uses its own English for them unless you give labels.

KeyDefault textTranslated through Craft
commentCountOne1 commentYes
commentCountOther{count} commentsYes
showCommentsShow commentsYes
showCommentsCountShow comments ({count})Yes
loadingLoading comments…Yes
loadMoreLoad more commentsYes
emptyNo comments yet.Yes
beFirstBe the first to comment.Yes
closedComments are closed.Yes
sortLabelSort commentsYes
sortNewestNewestYes
sortOldestOldestYes
sortTopTopYes
replyReplyYes
replyToReply to {name}…Yes
replyingToReplying toYes
cancelReplyCancel replyYes
cancelCancelYes
postPostYes
postingPosting…Yes
saveSave commentYes
editEditYes
editedEditedYes
deleteDeleteYes
deleteConfirmDelete this comment? This can’t be undone.Yes
likeLikeYes
likesLikesYes
upvoteUpvoteYes
downvoteDownvoteYes
scoreScoreYes
reportReport…Yes
reportTitleReport this commentYes
reportReasonWhat’s wrong with it?Yes
reportDetailsAnything else?Yes
reportDetailsHintOptional. Only moderators see this.Yes
sendReportSend reportYes
reportSentThanks for reporting this. A moderator will take a look.Yes
reportWithdrawnReport withdrawn.Yes
closeCloseYes
moreActionsMore actionsYes
copyLinkCopy linkYes
linkCopiedLink copied.Yes
showRepliesShow repliesYes
hideRepliesHide repliesYes
loadMoreRepliesLoad more repliesYes
guestGuestYes
commentByComment byYes
unavailableComment unavailable.Yes
awaitingApprovalWaiting for approval. Only you can see this until a moderator approves it.Yes
editorPlaceholderAdd to the conversation…Yes
editPlaceholderEdit your comment…Yes
yourCommentYour commentYes
writeSomethingFirstWrite something first.Yes
tooLongToo long by {count} charactersYes
charactersLeft{count} characters leftYes
characterCount{count} of {limit} charactersYes
draftSavedDraft savedYes
draftRestoredRestored your draft from {time}.Yes
discardConfirmDiscard what you’ve written?Yes
discardDiscardYes
uploadInProgressPlease wait for your upload to finish.Yes
joinTitleJoin the conversationYes
signInSign inYes
signInToCommentSign in to comment.Yes
signInOrGuestSign in to comment and hear about replies, or post as a guest.Yes
commentAsGuestComment as a guestYes
postingAsPosting asYes
yourDetailsYour detailsYes
yourNameYour nameYes
yourEmailYour emailYes
notShownPubliclyNot shown publiclyYes
replyEmailsEmail me when someone replies. We’ll ask you to confirm your address first.Yes
followFollowYes
followingFollowingYes
followByEmailFollow by emailYes
errorSomething went wrong. Please try again.Yes
tryAgainTry againYes
moderatorModeratorYes
moderatorViewModerator view.Yes
reviewInCommentsReview in CommentsYes
heldCount{count} heldYes
reportedCount{count} reportedYes
showHeldShow heldYes
hideHeldHide heldYes
approveApproveYes
markSpamMark as spamYes
notSpamNot spamYes
removeRemoveYes
restoreRestoreYes
keepKeepYes
spamSpamYes
gifGIFYes
gifAddAdd a GIFYes
gifSearchSearch GIPHYYes
gifResultsGIFsYes
gifRemoveRemove GIFYes
gifEmptyNo GIFs found.Yes
gifPoweredByPowered by GIPHYYes
gifUnavailableGIFs can’t be loaded right now.Yes
foldedReportsComment marked as inappropriateYes
foldedDownvotesComment hidden due to low ratingYes
showFoldedShow commentYes
authorScoreTotal votes across this user’s commentsYes
commentsCommentsYes
moderationModerationYes
onThisPageon this pageYes
holdHoldYes
removedNoteRemoved · only moderators see thisYes
chooseOptionChoose…Yes
addFilesAdd filesYes
addFileAdd a fileYes
removeFileRemoveYes
retryUploadTry {name} againYes
uploadingUploading…Yes
uploaded{name} uploaded.Yes
uploadFailed{name} didn’t upload.Yes
fileRemoved{name} removed.Yes
uploadLimitsUp to {count} files, {size} each.Yes
uploadLimitUp to {size}.Yes
fileTypeNotAllowed{name} can’t be added here. Choose {types}.Yes
fileTooLarge{name} is larger than {size}.Yes
tooManyFilesYou can add up to {count} files here.Yes
formFailedThe comment form couldn’t load. Please try again.No, labels only
uploadsFailedRemove or try again the files that didn’t upload, so nothing is left out.No, labels only
uploadsUnavailableFiles can’t be added right now.No, labels only
Last updated: Nov 18, 2026, 12:27 PM