wordpress page template comment

  1. Open the WordPress dashboard and navigate to the "Appearance" tab.
  2. Click on "Editor" to access the theme editor.
  3. In the right-hand column, locate and click on "Page Templates" to display the templates available in your theme.
  4. Choose the template file you want to add comments to and click on it to open the file in the editor.
  5. Place your cursor at the location in the code where you want to add a comment.
  6. To add a single-line comment, start with "//" followed by your comment.
  7. For a multi-line comment, enclose your comment within "/" and "/".
  8. Once you have added the comments, click the "Update File" button to save your changes.