Jump to content

IF THEME A then X ELSE Y (in block) ???

Featured Replies

Posted

Hi

I have a dark theme and a light theme. I am creating some custom blocks. IS there some IPS template code to say if dark theme then use this media image, else use this other media image?

Thank you 🙂

Sure - you can check \IPS\Member::loggedIn()->skin. That'll be the ID of the theme being used, so in your logic check compare that against the ID of your dark theme 🙂 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.