Trying to make use of the dynamic content and featured topics widget, but I’m not a fan of carousel layout when viewed on a mobile. Does anybody know a way (with custom css or other workarounds) to remove the carousel feature, and make it into 2 columns when in mobile view? We have done this with a custom html element, but it’s harder with a built in component :)
How it is now:
How i would like it to be: (just the layout)
EDIT: Same goes for the Featured Topics Widget.
Page 1 / 1
In short: I want to replace horizontal scrolling with the content being stacked vertically in 2 columns.
Is anyone here a CSS-wizard?
Hi @JeppePeppe, it's fantastic to see your enthusiasm for exploring our enhanced Dynamic Content Widget
To modify the layout of the Dynamic Content Widget and Featured Topics Widget to better suit mobile viewing without the carousel feature, you can use custom CSS. While I’m not a CSS wizard, I'm always up for experimenting with new techniques. Below are some CSS adjustments I found to try out for you:
/* Adjust styles for mobile view */ @media (max-width: 767px) { .featured-topic-card { flex: 0 0 calc(100% - 20px); /* Make cards full width on mobile */ } }
I hope these tweaks prove helpful! Let me know if this works for you :)
A quick reminder: Before rolling out any new Custom CSS, it's always wise to test it in your staging or sandbox environment to ensure a seamless experience for your community users.
Thanks @Nadia Nicolai! Although, I can’t seem to get it to work. I want the cards to be displayed into 2 columns in mobile view, this is the result of the featured topics widget at the moment:
It is in 2 columns in desktop, but still 1 column in mobile. Any idea how i can change it?
This is the settings i have in the widget(changed it to “vertically stacked”, still no 2 columns):
@olimarrio mind if we pick your brain for a moment? Any thoughts on how we can make it display in two columns for mobile view?
@JeppePeppe please could you PM the link for the widget you are trying to edit
@olimarrio@Nadia Nicolai
Sorry! It works great. Looks like I had some wrong settings when previewing the page in the responsive view in my browser...
Thank you guys!
EDIT: Sorry, tried it on my phone now and it still doesn’t work.
@olimarrio@Nadia Nicolai
False alarm.. tried the link on my actual phone, and it doesn’t work then…
@JeppePeppe please could you PM the link for the widget you are trying to edit
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.