Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Change SASS variable depending of subdomain

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #302538
    NicolasLrd
    Participant

    Hi,

    I have a WordPress multi site (site.com / subdomain1.site.com / subdomain2.site.com), and I want to change the primary color depending of the subdomain.
    I have assigned a class to the body depending of the subdomain.

    I tried this :
    .subdomain-1
    $primary : #5E1B3C
    .subdomain-2
    $primary: #BE0050

    But it doesn’t work. Have you got an idea of how to do this ?

    Thank you !

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.