Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
angle4cor Posted February 20, 2023 Posted February 20, 2023 Hey. I need to use different forum icons for light and dark styles. Is it possible to do something like that?
ArashDev Posted February 20, 2023 Posted February 20, 2023 hi If your theme has a light/dark mode, you easily do that. there is no option by default for that. html[data-theme="dark"] #elLogo { /*dark logo*/ } html[data-theme="light"] #elLogo { /*light logo*/ } angle4cor 1
angle4cor Posted February 20, 2023 Author Posted February 20, 2023 Thanks for your response. I am not using the dark mode (its not working properly), so I have a seperate light and dark theme. The code you presented above is for the site logo I guess? What I meant is to have two different forum icons, depending on the style I am using:
ArashDev Posted February 20, 2023 Posted February 20, 2023 3 hours ago, angle4cor said: The code you presented above is for the site logo I guess? yeh 3 hours ago, angle4cor said: What I meant is to have two different forum icons, depending on the style I am using: for this you can do too. what theme do you use? angle4cor 1
angle4cor Posted February 20, 2023 Author Posted February 20, 2023 My theme is based on the default Invision theme.
ArashDev Posted February 20, 2023 Posted February 20, 2023 ok. your users can switch between light and dark mode?
angle4cor Posted February 20, 2023 Author Posted February 20, 2023 Yes, they can do it manually. So, I would need a different icon for each style.
ArashDev Posted February 20, 2023 Posted February 20, 2023 if it's possible send your forum link in PM and I'll check and then I promise to help you SeNioR- 1
ArashDev Posted February 21, 2023 Posted February 21, 2023 For forums, do you want to use font icon or image? For forums, do you want to use font icon or image?
Recommended Posts