Reputation: 305
I am trying to apply a different html (theme) to my front-page (index.html) while all my other pages will have the same theme (index_in.html). I am trying it this way and was wondering why it is not working:
excerpted from my rules.xml:
...
<theme href="index_in.html" css:if-content="#visual-portal-wrapper" />
<rules css:if-content="#visual-portal-wrapper">
<theme href="index.html" if-path="front-page"/>
<theme href="index_in.html" />
...
Thank You
Upvotes: 2
Views: 357
Reputation: 3548
If the front page has #visual-portal-wrapper, then the first will match that too and be used. Conditional themes are tried in the order they appear and the first one to match is used.
Upvotes: 1
Reputation: 2090
Try...
<rules css:if-content="#visual-portal-wrapper">
<theme href="index.html" if-path="front-page" />
<theme href="index_in.html" />
...
</rules>
Upvotes: 2