[Resolved] Spacing, Twitter and Block quotes

Home Forums Support [Resolved] Spacing, Twitter and Block quotes

Home Forums Support Spacing, Twitter and Block quotes

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #948578
    Morgan

    Hey Tom, is this method still working?

    #948954
    Leo
    Staff
    Customer Support

    Hi there,

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

    Give it a shot and let us know?

    #1331214
    Jason

    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>
    #1331570
    Leo
    Staff
    Customer Support

    This post is super old.

    Ca you open a new topic for your question?

    And just reference back to this one.

    Thanks 🙂

    #1331975
    Jason

    OK new thread opened!

Viewing 5 posts - 16 through 20 (of 20 total)
  • The topic ‘Spacing, Twitter and Block quotes’ is closed to new replies.