Our education team shares content in a dedicated section of the Hub and they are interested in changing certain aspects of the layout for their content.
They asked if the following is possible (only in their section/categories not the entire community):
Remove/hide related topics widget when you’re viewing a post
Remove/hide navigation when you’re viewing a post
If anyone has insight, I would love to know. Thanks in advance :)
Page 1 / 1
Yeah you probably could achieve it with a 3rd party script. Detect that you’re in that community category and then hide() the navigation and related topics.
Something like this should work, where [CATEGORY PART OF URL] should be the part of the URL that is your category name + id
@jvdc still running into that same error message.. 😅 have you tried this in your community?
Hey @safiya , yes it works on my side ;-)
But it looks like you're inserting this in your CSS. It should be in your 3rd party scripts. You can insert it before the </body> tag (3rd option)
By the way it will also remove it the breadcrumb from the category overview. We can adjust it if you'd like to keep the breadcrumb in the category overview….
So you can remove the previous script and add the snippet above into your custom CSS. It's removing the breadcrumb and related topics on the article page view only. If you want that removed also in the category viewpage then you can remove ".twig_page-topic” twice
If you ever had a profile with us, there's no need to create another one. Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.