Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Adding Button To One Column For All Links That Has The Same Text

$
0
0

Replies: 0

Hello,

I will have hundreds of links in column 8 in the link above. I found another topic you answered that showed how to create a button with the same text for the column, but the button is smashed and doesn’t look good.

I added this:

“columnDefs”: [ { “render”: function ( data, type, row, meta ) { if ( ‘display’ === type ) { data = ‘Click here‘; } return data; }, “targets”: [ 4 ] } ]

to the “Custom Commands” text field on the table’s “Edit” screen but I’m unsure how to fix the button display.

I just want to to look like a single button and not cut in half like it currently is.

I would also like the link to open into a new window when clicked.

Thanks!

  • This topic was modified 2 hours, 6 minutes ago by didomedia.

Viewing all articles
Browse latest Browse all 59525

Trending Articles