I would like to make a category within a parent category a custom link (like we can already do with parent categories using the customize button in the live environment.)
I would like to make a category within a parent category a custom link (like we can already do with parent categories using the customize button in the live environment.)
cbeac,
You should be able to add a custom link by following the loom video below. Did you hit any roadblocks trying to add the link? The original category will still appear in the parent category’s drop down menu; however, you can just add a custom link in the mega menu for more visibility.
If you follow the steps in the video above to insert a custom link, does the link not appear? I would insert the URL of the category page.
I want the link to be in the dropdown from the parent category. Not the parent category itself.
However, I can provide a workaround. Try to create a child category and then force a redirect with a TPS script:
<script>
if (window.location.href == 'KB category url') {
window.location = "the custom link url"
}
</script>
When the user clicks on that category in the menu, it will take them to the custom link he wants.
If this is helpful, feel free to mark it as the best answer! :)
Try to create a child category and then force a redirect with a TPS script:
<script>
if (window.location.href == 'KB category url') {
window.location = "the custom link url"
}
</script>
Hey
Hi.
You’ll need to put this under the Third-Party Scripts section in Customisation, which is available via Control → Customization → Third-Party Scripts. You’ll need to be logged in as an Administrator to do this as it’s locked out from all other roles by default for security reasons. It’s recommended to test this on Staging first to make sure it’s working as expected.
There’s some more info at this thread, just in case you get stuck.
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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.