Twitter's share ignores my data-url and data-text


#1

I’m trying to install twitter buttons with another style, but I have problems with the url and title.
My code is as follows:


Tweet


#2

When your code has been run through PHP, what’s the HTML that’s produced?


#3

You mean this?

Tweet


#4

What happens if you remove the onclick and let the Twitter for websites framework control the opening of the window instead? I think to accomplish it with an onclick like you’re trying to do, you’d have to parameterize your data as part of the HREF rather than using HTML attributes on the A tag.


#5

I’m just using another button style, like 9gag.com to be exact.


#6

#7

#8

#9