I am having a problem with an image appended to an h2 tag not showing.
All the paths are correct as the image and the js both show up in my browser but they are not connecting to the tag in the site.
I have the following in a file called h2logo.js in a folder called js:
In the head section I have put
And of course the h2 tag is on the home page of a WordPress site.
Is there something I’m missing, like a . or a ; ????
Recap on this because I am new to WordPress and it might help someone else. The jQuery library is already loaded but WP does not accept the jQuery $ code. So to use that it means enqueuing the js or else to modify the code to jQuery instead of $