# Tweet Button Only Shows CodePen URL

**URL:** <https://forum.freecodecamp.org/t/tweet-button-only-shows-codepen-url/139815>\
**Category:** General\
**Created:** [August 3, 2017, 1:34pm UTC](https://forum.freecodecamp.org/t/tweet-button-only-shows-codepen-url/139815 "2017-08-03T13:34:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![laddeyboy](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@laddeyboy](https://forum.freecodecamp.org/u/laddeyboy)\
**Post date:** [August 3, 2017, 1:34pm UTC](https://forum.freecodecamp.org/t/tweet-button-only-shows-codepen-url/139815/1 "2017-08-03T13:34:25Z")

</div>

So, I do most of the challenges on my local editor, test the code locally and then post to CodePen. Here’s my CodePen: [https://codepen.io/laddeyboy/pen/PKzMwe](https://codepen.io/laddeyboy/pen/PKzMwe)

So locally, I click on tweet, and my quote pre-populates into the twitter window for tweeting. However, on codepen, I click tweet and all i get is my CodePen url populated to tweet.

I canNOT figure out why it works locally, but not on CodePen. Any help is appreciated??

---

<div class="post-metadata">

**Author:** ![N4thyra](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/n4thyra/32/60035_2.png) [@N4thyra](https://forum.freecodecamp.org/u/N4thyra)\
**Post date:** [August 3, 2017, 2:05pm UTC](https://forum.freecodecamp.org/t/tweet-button-only-shows-codepen-url/139815/2 "2017-08-03T14:05:40Z")

</div>

I’ve figured that the issue is linked to your Tweet button class=“twitter-share-button”. I have no idea where you came to the class, but as soon as you get rid of it, your app will work.

If I were you, I’d also change your Twitter links to this `'https://twitter.com/intent/tweet?text='`

---

<div class="post-metadata">

**Author:** ![laddeyboy](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@laddeyboy](https://forum.freecodecamp.org/u/laddeyboy)\
**Post date:** [August 3, 2017, 2:38pm UTC](https://forum.freecodecamp.org/t/tweet-button-only-shows-codepen-url/139815/3 "2017-08-03T14:38:21Z")

</div>

N4thyra, thank you! Removing the button class did work so my quote is populating into the twitter window. That class came directly from the twitter html code from their API. Twitter’s publish site, it where I pulled that whole line of code from.  
Once I removed that class though, i destroyed my twitter button look, so it doesn’t look like a button anymore. Will have to figure out what’s going on with that now.

Thanks again!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:46pm UTC](https://forum.freecodecamp.org/t/tweet-button-only-shows-codepen-url/139815/4 "2021-01-17T20:46:24Z")

</div>

Closed on January 17, 2021, 8:46pm UTC


