Controlling child rows by column (2)
-
Meitar – Really brilliant plugin.
I wanted to add information for users that want to force columns to be shown as child rows.
Through much trial and error, I was able to modify code from here (Thanks lazerboy): https://www.ads-software.com/support/topic/controlling-child-rows-by-column/
Here the code I added to my child theme functions.php
function modify_cols ($html) { $search = array("th class=col-7", "col-7 ", "col-8 ", "col-9 ", "col-10 ", "col-11 ", "col-12 ", "col-13 ", "col-14 ", "col-15 ", "col-16 ", "col-17 ", "col-18 ", "col-19 "); $replace = array("th class=col-7 none", "col-7 none ", "col-8 none ", "col-9 none ", "col-10 none ", "col-11 none ", "col-12 none ", "col-13 none ", "col-14 none ", "col-15 none ", "col-16 none ", "col-17 none ", "col-18 none ", "col-19 none "); return str_replace($search, $replace, $html); } add_filter('gdoc_table_html', 'modify_cols');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Controlling child rows by column (2)’ is closed to new replies.