<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Add custom data-attribute to th, td

Replies: 10

Hi,
Love your plugin.
I want create Responsive table like this:
https://codepen.io/AllThingsSmitty/pen/MyqmdM

But by this way I need add custom html data-attribute to <td> / <th> then create custom CSS.

How can I add <td data-label=”{header-(number)-value}”>;.

Any hook, php code to do this?

Thanks

  • This topic was modified 7 hours, 26 minutes ago by datverse.
  • This topic was modified 7 hours, 17 minutes ago by datverse.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer