Hi,
I’m so close to finishing my random quote machine but i can’t change the href attribute of my twitter button. I’ve looked at so many other code examples and i just can’t figure out why mine doesnt work.
So, you need to change in codepen your actual html code with this one <a class="twitter-share-button" id="twit" href="#" target="_blank" data-size="large"> Tweet</a> and after you press the more quotes btn and you have a quote displayed if you press the tweet link you will see it works.
Yes i did that, should be visible in the codepen now but when it opens the twitter window it still won’t fill it with my intended tweet. Merely it’s filled with a link to my codepen and i’m not sure why it wont open my intended url. Something to do with the twitter button JS i used? Any ideas?