Home › Forums › Support › Hiding Table of Contents On Mobile This topic has 11 replies, 2 voices, and was last updated 4 years, 9 months ago by Leo. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts July 9, 2019 at 4:09 pm #953426 Mark I cannot get my TOC plugin to format well on mobile Is there a quick CSS I can use to hide it? July 9, 2019 at 4:14 pm #953430 LeoStaff Customer Support Hi there, If you can add a custom class to the table then you can use the built-in hide-on-mobile class: https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes Let me know if this helps ๐ July 9, 2019 at 4:17 pm #953434 Mark Ok, I was trying to do it globally across the site. July 9, 2019 at 4:22 pm #953436 LeoStaff Customer Support Where can I find one in your site? July 9, 2019 at 4:24 pm #953437 Mark Each post has one on the 2nd paragraph. You’ll see on mobile that formating doesn’t look great when expanded. July 9, 2019 at 4:25 pm #953438 LeoStaff Customer Support Hmm I wonder if this would work: @media (max-width: 768px) { .lwptoc{ display: none !important; } } July 9, 2019 at 4:33 pm #953442 Mark Nope, that didn’t do it. July 9, 2019 at 4:39 pm #953447 LeoStaff Customer Support Is this what you are referring to? https://www.screencast.com/t/gbFFdr7RTeVR If so the code should work but I’m not seeing the CSS being added. Make sure to clear all caching plugins including Autopimize? July 9, 2019 at 4:41 pm #953448 Mark No, I’m referring to the “Article Contents” box at the top of the page. It’s the LuckyWP Table of Contents plugin. July 9, 2019 at 4:43 pm #953450 LeoStaff Customer Support Try the edited CSS: https://generatepress.com/forums/topic/hiding-table-of-contents-on-mobile/#post-953438 July 9, 2019 at 5:00 pm #953456 Mark It didn’t work but I think I found a workaround. Thanks July 10, 2019 at 8:33 am #954123 LeoStaff Customer Support Awesome ๐ Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In