{"id":77,"date":"2025-09-04T16:55:47","date_gmt":"2025-09-04T16:55:47","guid":{"rendered":"https:\/\/skb-rpd-3fe7.ue1.rapydapps.cloud\/?post_type=ht_kb&#038;p=77"},"modified":"2025-09-04T17:06:50","modified_gmt":"2025-09-04T17:06:50","slug":"hide-columns-in-the-front-end-tin-can-report","status":"publish","type":"ht_kb","link":"https:\/\/skb.uncannyowl.com\/?ht_kb=hide-columns-in-the-front-end-tin-can-report","title":{"rendered":"Hide columns in the front-end Tin Canny Course Report"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There is currently no setting to enable\/disable columns for the front end Course Report.<br><br>However, an action filter can be used to remove columns. Each column is identified via a numeric value.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Column Name<br><\/strong>ID<br>Course<br>Enrolled<br>Not Started<br>In Progress<br>Completed<br>Avg Quiz Score<br>% Complete<br>Details<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Numeric Value<\/strong><br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<\/p>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Using the chart above to identify the columns you wish to hide, modify the snippet below to hide specific columns. Each column has a &#8220;th&#8221; element and a &#8220;td&#8221; element that needs to be included in order to remove the column. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_action('wp_footer', 'front_hide_columns_in_report_table');\nfunction front_hide_columns_in_report_table() {\n    ?>\n    &lt;style>\n      \/* 1) Kill DataTables' fixed column widths *\/\n      #coursesOverviewTable colgroup { display: none !important; }\n\n      \/* 2) Hide 3rd, 5th, and 8th columns (header + body) *\/\n      #coursesOverviewTable th:nth-child(1), \n      #coursesOverviewTable th:nth-child(2), \n      #coursesOverviewTable th:nth-child(3),\n      #coursesOverviewTable th:nth-child(4), \n      #coursesOverviewTable th:nth-child(5), \n      #coursesOverviewTable th:nth-child(6), \n      #coursesOverviewTable th:nth-child(7), \n      #coursesOverviewTable th:nth-child(8), \n      #coursesOverviewTable th:nth-child(9),\n      #coursesOverviewTable td:nth-child(1), \n      #coursesOverviewTable td:nth-child(2), \n      #coursesOverviewTable td:nth-child(3),\n      #coursesOverviewTable td:nth-child(4), \n      #coursesOverviewTable td:nth-child(5), \n      #coursesOverviewTable td:nth-child(6), \n      #coursesOverviewTable td:nth-child(7), \n      #coursesOverviewTable td:nth-child(8), \n      #coursesOverviewTable td:nth-child(9) {\n        display: none;\n      }\n\n      \/* 3) Let remaining columns stretch *\/\n      #coursesOverviewTable { width: 100% !important; table-layout: auto !important; }\n      #coursesOverviewTable thead th, \n      #coursesOverviewTable tbody td { width: auto !important; }\n    &lt;\/style>\n    &lt;?php\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a sample snippet that will hide the &#8220;Enrolled&#8221;, &#8220;In Progress&#8221; and &#8220;% Complete&#8221; columns:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_action('wp_footer', 'front_hide_columns_in_report_table');\nfunction front_hide_columns_in_report_table() {\n    ?>\n    &lt;style>\n      \/* 1) Kill DataTables' fixed column widths *\/\n      #coursesOverviewTable colgroup { display: none !important; }\n\n      \/* 2) Hide 3rd, 5th, and 8th columns (header + body) *\/\n      #coursesOverviewTable th:nth-child(3),\n      #coursesOverviewTable td:nth-child(3),\n      #coursesOverviewTable th:nth-child(5),\n      #coursesOverviewTable td:nth-child(5),\n      #coursesOverviewTable th:nth-child(8),\n      #coursesOverviewTable td:nth-child(8) {\n        display: none !important;\n      }\n\n      \/* 3) Let remaining columns stretch *\/\n      #coursesOverviewTable { width: 100% !important; table-layout: auto !important; }\n      #coursesOverviewTable thead th, \n      #coursesOverviewTable tbody td { width: auto !important; }\n    &lt;\/style>\n    &lt;?php\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Screenshot showing snippet in action<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"505\" src=\"https:\/\/skb.uncannyowl.com\/wp-content\/uploads\/2025\/09\/hide-colounds-course-report-page-1024x505.png\" alt=\"\" class=\"wp-image-79\" srcset=\"https:\/\/skb.uncannyowl.com\/wp-content\/uploads\/2025\/09\/hide-colounds-course-report-page-1024x505.png 1024w, https:\/\/skb.uncannyowl.com\/wp-content\/uploads\/2025\/09\/hide-colounds-course-report-page-300x148.png 300w, https:\/\/skb.uncannyowl.com\/wp-content\/uploads\/2025\/09\/hide-colounds-course-report-page-768x379.png 768w, https:\/\/skb.uncannyowl.com\/wp-content\/uploads\/2025\/09\/hide-colounds-course-report-page-50x25.png 50w, https:\/\/skb.uncannyowl.com\/wp-content\/uploads\/2025\/09\/hide-colounds-course-report-page-1536x758.png 1536w, https:\/\/skb.uncannyowl.com\/wp-content\/uploads\/2025\/09\/hide-colounds-course-report-page-60x30.png 60w, https:\/\/skb.uncannyowl.com\/wp-content\/uploads\/2025\/09\/hide-colounds-course-report-page-100x49.png 100w, https:\/\/skb.uncannyowl.com\/wp-content\/uploads\/2025\/09\/hide-colounds-course-report-page.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is currently no setting to enable\/disable columns for the front end Course Report. However, an action filter can be used to remove columns. Each column is identified via a numeric value. Column NameIDCourseEnrolledNot StartedIn ProgressCompletedAvg Quiz Score% CompleteDetails Numeric Value123456789 Using the chart above to identify the columns you&#8230;<\/p>\n","protected":false},"author":4,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[29,27],"class_list":["post-77","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_tag-course-report","ht_kb_tag-tin-canny"],"_links":{"self":[{"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=77"}],"version-history":[{"count":3,"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/77\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/77\/revisions\/82"}],"wp:attachment":[{"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=77"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=77"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/skb.uncannyowl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}