@jarvis I had to replace $ with jQuery, to solve this error: ‘Uncaught TypeError: $ is not a function ‘
Now, I am getting this error: Uncaught ReferenceError: ajax_posts is not defined
It makes me think that I haven’t proprely enqued the script maybe?
Also do I need to keep the theme twentytwentyone installed ?