• Resolved axibert

    (@axibert)


    I have added a class to the table in the editor, but I cannot get it to be excluded from responsive. I have added the class to the options and it won’t turn off.

    Also if there is no title bar set for the table it will still use the first row as the one that is being repeated when becoming responsive. So the plugin cannot be used with tables without a titlebar. Would it be possible to add an option to switch off responsive when the table ahs no title bar? This would be extremely helpful.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Nikolay Nikolov

    (@nnikolov)

    Hi.

    Make sure that the class is on the actual table tag, not a parent element, if you are using the setting for that. There is a separate setting for a parent element. If you use the block editor it adds the class to a parent element. Also make sure you are entering the class without a dot, just the name. If it still does not work I have to see a screenshot of your settings and to see the HTML code of the table.

    About the first row always being used, yes, that is the idea of how the responsiveness works in the plugin. I know it is not suitable for all tables but there is no way for it to know for sure if the first row is for column names or data. Can you clarify what do you mean by title bar in the table? Maybe I can add an option. Do you mean that you want an option that will only make responsive tables that have TH tags for the first row and ignore tables that only have TD tags?

    Regards.

    Thread Starter axibert

    (@axibert)

     Do you mean that you want an option that will only make responsive tables that have TH tags for the first row and ignore tables that only have TD tags?

    Yes exactly. in the Gutenberg table you have the switch to have the first row as the table head. An option to only make tables responsive that have this activated and to ignore all others would be great. And tbh this is the way I expected the plugin to work, I just realized by accident that it will always do the repeat of the first row.

    If there was an option like this my first problem would already be solved as well by that. I have tried all variations you stated and still it won‘t work for me as intended. I could give you more details in private if you would like to take a look.

    Thank you very much for the help!

    Plugin Author Nikolay Nikolov

    (@nnikolov)

    I do want to see why the class is not working for you, but I think it is not allowed here to post email addresses unfortunately (though mine is posted on my website).

    About an option, OK, I saw now how the Gutenberg works and I tried it. It seems to also add THEAD tag, I will add an option to exclude all tables that don’t have THEAD.

    Plugin Author Nikolay Nikolov

    (@nnikolov)

    It is ready, I released it. The option is in the global settings.

    Thread Starter axibert

    (@axibert)

    Wow, thank you so much, this is working for me now! I will e-mail you later.

    Plugin Author Nikolay Nikolov

    (@nnikolov)

    Great, happy to hear it 🙂

    Plugin Author Nikolay Nikolov

    (@nnikolov)

    There was a bug when there are more than one exact same tables and only some had the class on a parent element, by which we disable in the options. It is fixed now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Exclude from responsive by parent class not working’ is closed to new replies.