Skip to main content

Our community uses the “shared” mega menu and topic banner. Is it possible to create a new “shared” widget? 

 

Context: The problem I'm trying to solve is that I’d like to have two separate “shared” topic banners...one that’s visible for a specific segment of users and another that’s visible for everyone else. 

 

My thinking is that I’d create a second “shared” topic banner. So I’d adjust the visibility for each one according to who I’d like to view each one.

 

Is anything like this possible?

I see there is the option to add widgets above the shared topic banner but it doesn't render when you add widgets with content above it. I thought that anything you’d add above it would make it shared but it looks more like a bug and it shouldn’t show you the option to add anything…

Otherwise, you could mimic the topic widget with the HTML widget: just copy/paste the whole HTML and change the title and link. But this won’t be shared and just visible on the homepage or custom page you’re adding it to...


Thanks ​@jvdc 👍

Not being able to make it “shared” is kind of the blocker here. But I’m curious, how would you go about pulling the HTML of the existing topic banner?


Hey ​@jwren, well if you want to copy the whole styling of the topic banner, you can copy its HTML by right-clicking on an existing one then “inspect element” (if you're using Chrome), locate the <div> that looks like the following: <div class="widget-container widget-container--topic_banner widget-container--index-3" data-idx="3">, and then right-click then “edit HTML” and copy the whole thing.

In the HTML widget, paste this HTML and replace the titles and links. You can configure the visibility like any other widgets.

Does that make sense?


Got it, thanks for the steps ​@jvdc 💪