Reply To: Spacing, Twitter and Block quotes

Home Forums Support Spacing, Twitter and Block quotes Reply To: Spacing, Twitter and Block quotes

#158682
Tom
Lead Developer
Lead Developer

Let’s try this one:

<script>
jQuery(document).ready(function($){
  
	// Tweet blockquote	
	$('blockquote.tweet').each(function(){
		var quote = $(this);
		quote.append( '<a target="_blank" href="https://twitter.com/intent/tweet?url=' + window.location.href  + '&text=' + quote.text() + ' @yourhandle" class="twitter-share-button" data-text="' + quote.text() + '" data-lang="en">Tweet</a>' );
	});
	
});
</script>