Use a Custom Icon in Card

If you have created icons and would like to use these custom icons on a few cards' this is a solution.

  • Not yet re-checked
  • Classic builder

Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

Screenshot for “Use a Custom Icon in Card”

If you have created icons and would like to use these custom icons on a few cards' this is a solution.

Step 1

Find the component ID of your card.

Screenshot for “Use a Custom Icon in Card”

Step 2

Add the following code to the JavaScript tab of your page.

Text
TB.render('component_3',function(data){
    setTimeout(function(){
        if(!data.ele.find('.custom-icon').length){
            data.ele.find('.af-card-component .con').prepend('<img class="custom-icon" src="https://community.tadabase.io/uploads/default/original/2X/f/f21ff3d03ee2bfaa679e94b5bf2299f47a8f82cc.png">');    
        }
    },100);
});
Screenshot for “Use a Custom Icon in Card”

Was this page helpful?

Something wrong or missing on this page? Tell us.