Thanks for sharing the solution, we’ll try to improve the docs and add more tutorials for developers.
If you also want to restrict the added title to the Listings page only, please try this code snippet Add Title and description to the default Listings page - #4 by ihor
Hope this helps