Struggling to add this unique element after a specific css-class on my website powered by Wordpress:
<span class="blink">_</span>
I'm unable to alter the file structure, but I have the liberty to utilize CSS and jQuery. The chunk of code functions when placed randomly, but now my goal is to employ CSS/jQuery to append it, so that the ending of all my post headers are garnished with a blinking underscore (_).
The code snippet I've come up with is as follows, however, it's not yielding the desired result:
$(".intro-title").after("<span class="blink">_</span>");
Regardless of my attempts with or without the quotation marks around the -tag, I can't seem to make it work.
When I apply
.intro-title::after { content: "Hello";}
it functions flawlessly. This indicates that the setup of Wordpress allows me to append content after the header. Moreover, I am mandated to encapsulate my function within a tag in this format:
jQuery(function($){ ... });
Fingers crossed that I can successfully append my tiny blinking underscore to all h1's with the class "intro-title" - but as of now, I'm at an impasse!