Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7842187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:15:46+00:00 2026-06-02T16:15:46+00:00

I tried working with this coding posted on Nara’s question , but I’m not

  • 0

I tried working with this coding posted on Nara’s question, but I’m not sure how I’m suppose to do the HTML part of it. I kinda figured it had to be in <a href=""></a> tag, but not sure if I need to add a class or an id. I’ve been playing around with the coding for awhile now, but still have not figured it out. I would really appreciate it if anyone could explain it to me a bit better. It would really mean a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:15:49+00:00Added an answer on June 2, 2026 at 4:15 pm

    I have a tutorial on this at: http://like-button.tumblr.com. It’s been updated over time to eliminate the problem areas people have with implementing this. It’s now a simple cut and paste.

    To add Like functionality, you use the following URL and set it as the src attribute of an invisible <iframe>:

    http://www.tumblr.com/<command>/<oauthId>?id=<postId>
    
    • <command>: like or unlike
    • <oauthId>: last eight characters of {ReblogURL}
    • <postId>: {PostID}

    Example:

    http://www.tumblr.com/like/fGKvAJgQ?id=16664837215
    

    Cut and paste the following code block into your theme immediately before </head>. This will give you a Like button on each post that looks like the default Tumblr grey heart. It will turn red when you hover over it and when you click it. If you click it again, it will turn grey again and delete the Like.

    Code:

    <style>
    .my-like {
        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAYAAAA/mJfHAAABH0lEQVQ4y62T30vCUBiGv/9YuhBLkCA08FdogRFFYFEUhhZNCCQoSESiIOii68pl5qV6s8Eb7+SMHXNs6S7ejZ3zvA+ccT4BICofvS88dJ7w8vqG8WQC754K17lPjrx3z3l8D4YoVaqIrWbcJNbzaHefNZjfXPdy5b0jsO/IRqMxUpmSBnhz2bx1QL79GPbpEePmzhdSyW8fBDL0SK68HwiGCT2S3NiKREaPzP7QRRNPZSHpwm4kMnqkYbQikdEjZv8HK2ubS4nY75mD6WU8qzeXkrHvToBlWSjuHC4kYo99V8bwBnM0/iMiz542myq2bSPskcmR/zPos7lvP8Lv/nGd+/N6c2Xq2KcXhiY6qV1rxwotU3n/NHF8fgW+g9hfsHJlJUYljcgAAAAASUVORK5CYII=) !important;
        height:17px;
        width:19px;
        cursor:pointer;
        display:inline-block;
        vertical-align:top;
    }
    .my-liked, .my-like:hover {
        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAYAAAA/mJfHAAABSklEQVQ4y2P4//8/Awy/O3fu/905c/4/2779/69Pn/4jy8Hwz/fv/z/buvX/vfnz/7+/eBFFDZj4cOXK/8O+Pv+36+rA8W4zs/8Ply1DUXx/4cL/u0yMUdQdCQ76/+nWLbA6hq+PH//fbW6OogAZ3+zvByu81t6OU80ea6v/P16//s9wqboKpyIYPhYeTlDN1abG/wz7HR0JKiQGH3Bz+8+ww0CfKobtMjb6z0ANg+CGgQKPKt50dfnPcL6wkCqGXaoo/8/w5tgxyg3T0wUnYHBiPJuZSZFhF8pK/8NzACjrgKKWHINAOef3168Iw0D429OnGFmKEAZlJVDKR8mbMAyy4XRqClEGnc3J+f/nxw/MjI6OQflxh6EBzvR0Z9o0rCUKVsNA+MuD+/9PJiSgGHQmPf0/KDhw6cFpGAy/OnAAbOibEyf+E1ILAFBjDrchm7KrAAAAAElFTkSuQmCC) !important;
        height:17px;
        width:19px;
        cursor:pointer;
        display:inline-block;
        vertical-align:top;
    }
    </style>
    <script>
    window.onload = function () {
    document.body.insertAdjacentHTML( 'beforeEnd', '<iframe id="my-like-frame" style="display:none;"></iframe>' );
    document.addEventListener( 'click', function ( event ) {
        var myLike = event.target;
        if( myLike.className.indexOf( 'my-like' ) > -1 ) {
            var frame = document.getElementById( 'my-like-frame' ),
                liked = ( myLike.className == 'my-liked' ),
                command = liked ? 'unlike' : 'like',
                reblog = myLike.getAttribute( 'data-reblog' ),
                id = myLike.getAttribute( 'data-id' ),
                oauth = reblog.slice( -8 );
            frame.src = 'http://www.tumblr.com/' + command + '/' + oauth + '?id=' + id;
            liked ? myLike.className = 'my-like' : myLike.className = 'my-liked';
        };
    }, false );
    };
    </script>
    

    Then cut and paste the following button code into your theme where you want your like button to be (this must be inside your {block:Posts} block).

    Code:

    <div class="my-like" data-reblog="{ReblogURL}" data-id="{PostID}"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have tried this code to redirect a php page.but it s not working
What I tried is by adding selected , but this is not working: <select>
I have tried and failed to get this working. Basically I am trying to
I am tired to find out why this simple query not working. SELECT image_url
I tried to make an action fixture and it’s not working. (c# with Slim
Firstly I tried to get fabric working, but it kept asking me for a
I am trying to parse the following xml to punycode but it's not working
:) I tried using w = Word(printables), but it isn't working. How should I
I tried to download a file from sharepoint. But after I download this file,
I am tired of working this out myself , i cannot understand the way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.