Hi Guys, 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:
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 $ e.g.
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 ; ????
.append(), better use.html():e.g.