Comments Ana started the conversationFebruary 10, 2021 at 2:01pmHi, I have a group_concat of url links separated with <br>. How can they be displayed as button and accessed separately from one cell in a wpDataTable? Now they are considered as one link. 2,572Aleksandar repliedFebruary 11, 2021 at 9:59amHello AnaYou can define the links like this: <a href="#" class="myButton">Click here</a>Then, in wpDataTables settings/Custom JS and CSS/Custom CSS field, you can style that button with this code (for example): .myButton { background-color:#44c767; border-radius:28px; border:1px solid #18ab29; display:inline-block; cursor:pointer; color:#ffffff; font-family:Arial; font-size:17px; padding:16px 31px; text-decoration:none; text-shadow:0px 1px 0px #2f6627; } .myButton:hover { background-color:#5cbf2a; } .myButton:active { position:relative; top:1px; }That will convert all hyperlinks where you've added the class "myButton" into buttons with this custom text.If you're using an SQL query, you can use CONCAT like: SELECT column1, column2, CONCAT('<a href="URL" class="myButton">',yourTable.column3,'</a>') AS hyperlink FROM yourTableThat will replace "Click here" with the title of column3.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail TablesAna repliedFebruary 11, 2021 at 10:46amThank you very much,Ana 2,572Aleksandar repliedFebruary 11, 2021 at 3:08pmYou're welcome, AnaIf you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Sign in to reply ...
Hi, I have a group_concat of url links separated with <br>. How can they be displayed as button and accessed separately from one cell in a wpDataTable? Now they are considered as one link.
Hello Ana
You can define the links like this:
Then, in wpDataTables settings/Custom JS and CSS/Custom CSS field, you can style that button with this code (for example):
That will convert all hyperlinks where you've added the class "myButton" into buttons with this custom text.
If you're using an SQL query, you can use CONCAT like:
That will replace "Click here" with the title of column3.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thank you very much,
Ana
You're welcome, Ana
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables