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.
Extremely appreciative of any help.
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.
Extremely appreciative of any help.
not too sure, your code is kinda over my head
i just did this…
Random Quote Codepen
it must be like: <a class="twitter-share-button" id="twit" href="#" target="_blank" data-size="large">
Thanks for the tip but still won’t fill my tweet with the desired quote. I suspect there is something slightly off in my jss?
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?
Oh great! That’s so weird that doesn’t work for me. Thankyou very much!!!
I’m still seeing it give the link to the codepen…
“CodePen - Random Quote Machine https://s.codepen.io/nathan-williams/fullpage/gzZOQB”
also, your copyright div will cover the buttons if the window is small…