LogoLogo
Ajaxify HomeWP.org RepoDLX Plugins
Ajaxify Comments
Ajaxify Comments
  • 👋Welcome to Ajaxify Comments
  • First Time Users
    • Installing the Plugin
    • Finding the Settings
    • Getting Started
    • Menu Helper
  • 🖌️Customization
    • Labels and Translations
    • Appearance Settings
  • 🤓Advanced Topics
    • Callbacks
    • Disable Scroll to Posted Comment (Anchor)
    • Disable URL Updating
    • Lazy Loading Comments
    • Selectors
    • WPML and Translations
  • Developers
    • Script Debugging
    • Actions and Filters
      • Changing Labels Programmatically
    • GitHub Repo
    • Changelog
  • Theme Integrations
    • Ollie
    • Twenty Twenty-Three
  • Plugin Integrations
    • Confetti
    • Comment Edit Core
  • Quick Links
    • Ajaxify Home
    • Support
    • GitHub Repo
    • WordPress.org Plugin Page
Powered by GitBook
LogoLogo

Download

  • GitHub
  • WP.org Repo

Support

  • WP.org Support
  • DLX Support
  • Contact

DLX Plugins

On this page
  • Comments Container Selector
  • Comment Form Selector
  • Respond Selector
  • Comment Textarea Selector
  • Comment Submit Button Selector
  • Advanced Selectors

Was this helpful?

Export as PDF
  1. Advanced Topics

Selectors

PreviousLazy Loading CommentsNextWPML and Translations

Last updated 1 year ago

Was this helpful?

Selectors help tell Ajaxify Comments about your comment section.

Selectors can be an advanced topic, so it's best to allow Menu Helper to help with finding the right selectors.

To find the right selectors, it's recommended to open the developer tools in your browser and go to elements.

Selectors must be compatible with jQuery notation. IDs must have a # sign and classes must have a . in front of them.

Comments Container Selector

This container wraps the comments list. You can usually find it by opening the dev tools and finding an individual comment.

Trace this comment back to its parent container, and you'll find the container ID or class.

Comment Form Selector

This is the wrapper ID or class for the form element in the comments section.

This can usually be found by inspecting the comment form's textarea element and tracing it back to the form parent element.

Respond Selector

This wraps the respond area for the comment section.

You can usually find this by selecting the comment form's textarea and tracing it back to the form's parent container.

Comment Textarea Selector

This is the comment form's textarea field and can be found by selecting the comment's textarea.

Comment Submit Button Selector

This is the submit button for the comment section. It can be found by selecting the submit button and finding the ID or class of the button or input.

Advanced Selectors

Advanced Selectors must be in jQuery notation.

🤓
Menu Helper
Selectors in the Admin Settings
Default Selectors Shown
Find the wrapper around the individual comments
Find the ID or Class of the comment form element
The Respond Selector wraps the comment form
Textarea field that shows the ID of the textarea
Submit Button Selector Example