I'm trying to remove the content div only for the homepage by this line (in the rules.xml)
<drop css:theme="#content" if-content="/html/body[@class='section-front-page']" />
It doesn't work ... why? It seems ok for me :)
See: http://pivotallabs.com/users/alex/blog/articles/427-xpath-css-class-matching
To use that syntax you would have to match on all the classes for the body tag
Use:
/html/body[ contains( concat(' ',normalize-space(@class),' '), ' section-front-page ' ) ]
(works for me in FireBug)
You can use CSS selectors, too:
<drop css:theme="#content" css:if-content="body.section-front-page" />
This resolves to the same XPath expression, but it's a lot easier on the eye
Copyright © 2021 Jogjafile Inc.
See: http://pivotallabs.com/users/alex/blog/articles/427-xpath-css-class-matching
To use that syntax you would have to match on all the classes for the body tag
Use:
(works for me in FireBug)