• How can I add an additional class to a table? In the block editor I’ve selected the table and added an additional CSS class, but on the web page it adds a <figure> tag outside the <table> tag and applies the additional CSS class to the <figure> tag. How can I apply the class to the table tag, not the figure tag?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @timb111,

    I have already spend more time on this issue and I didn’t find any solution. Then I have to write js and apply a class on the table. Please find below js and apply it.

    $(document).ready(function(){
        $('.your parent class name figure table').addClass('Enter your New class name');
    });

    Thanks

    Thread Starter timb111

    (@timb111)

    Thank you @sagarladani . Where do I insert this function?

    Hello @timb111,

    If you have created any custom js file so you can add the above js.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding class to table adds class to figure tag instead’ is closed to new replies.