Twitter card not showing up


Hi there,

Re: page on

I have a page with various Tweet buttons for different sections of a page.

The problem is the Twitter card is not being applied to the tweets. Using the Twitter cards validator, I can see that the cards are configured and whitelisted ok for the relevant page.

Here is my Tweet button code (excuse the PHP variables output for parameters)…

<a href="<?=$tweet_text;?>&url=<?=$url;?>&data-counturl=<?php echo "http://$_SERVER[HTTP_HOST]/"; ?>" target="_blank" title="Tweet" onclick="'<?=$tweet_text;?>&data-counturl=<?php echo $url; ?>'); return false;"><button class="<?=$hide_class;?> tw"><i class="fa fa-twitter"></i> Tweet</button></a>

Thanks for any help



Hi @KevinWorrall, beautiful site!

I think I found your issue. The URL is missing from the pre-composed Tweet. Looking through your code you have no “url” parameter defined in your onclick javascript. Try adding that and I’m sure it will work.


Great, that is indeed the issue. Thanks for taking the time to look into it and reply.