Open extra topbar

Looking to truncate/modify data in the frontend transactions short-code views

If you are new here, please see some information on how to ask for support. Thank you!

Looking to truncate/modify data in the frontend transactions short-code views

dashed-slug.net Forums General discussion Looking to truncate/modify data in the frontend transactions short-code views

This topic contains 1 reply, has 2 voices, and was last updated by  alexg 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6590

    d3vnu77
    Participant

    For instance, the from_user field, might have an address that is almost 98 characters

    addySFb1vyba1aCTdsqbTSDHXCXEbEDkaGEzGNZfPKjV12noMxKCQzae9PzmJxJycs1SKG1aC8dvUgUBs2XSQkv29RE9eKNKic

    same with the to field.

    now I’d like to truncate this full address down to like 10 characters so that the transactions dataset is not bleeding into a scrollbar. Is this possible with the way do guys use data-bindings to display the data?

    #6591

    alexg
    Keymaster

    Hello,

    You could solve this with CSS. Go to your customizer and add the following CSS:

    
    .dashed-slug-wallets.transactions .from_user,
    .dashed-slug-wallets.transactions .to_user {
    	max-width: 100px;
    }
    

    This will control the width of the two columns that can contain addresses.

    You can also use the “columns” shortcode attribute to choose which columns you wish to display, and in what order. See the shortcode documentation for details.

    with regards

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.