Site logo

Archived topic

Spacing, Twitter and Block quotes

19 replies · Started by Kerry on December 3, 2015

Viewing posts 16–20 of 20

Hey Tom, is this method still working?

Hi there,

This post is quite old but I think it should still work.

Give it a shot and let us know?

I found this thread and have found it still works to allow me to replace the Better Click to Tweet plugin. I have altered the code slightly to resemble the output of the previous plugin. I would like to be able to use the shortlink instead of full URL. I am unfortunately not down with js coding. Would you be able to suggest how I need to change this code to get the shortlink instead?

<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() + '&via=@YOURHANDLE&related=@YOURHANDLE" class="twitter-share-button icon-twitter" data-text="' + quote.text() + '" data-lang="en">Tweet this</a>' );
	});
});
</script>

This post is super old.

Ca you open a new topic for your question?

And just reference back to this one.

Thanks :)

OK new thread opened!

This archived topic is closed to new replies.