I am trying to delete the contents of a div only for the home page on this line (in rules.xml)
<drop css:theme="#content" if-content="/html/body[@class='section-front-page']" />
It doesn't work ... why? I think this is normal :)
You can also use the CSS selector:
<drop css:theme="#content" css:if-content="body.section-front-page" />
This resolves the same XPath expression, but is much easier on the eye.
See: http://pivotallabs.com/users/alex/blog/articles/427-xpath-css-class-matching
To use this syntax, you will have to match all classes for the body tag
Using:
/html/body[ contains( concat(' ',normalize-space(@class),' '), ' section-front-page ' ) ]
(works for me in FireBug)
Source: https://habr.com/ru/post/1343041/More articles:Changing the encryption algorithm - javaYii urlManager route with query string - phpHow to determine when a Blackberry app is in an active state? - javaruby &: syntax method - syntaxNokogiri 'not' selector - ruby | fooobar.comIs this the most effective way to make a chat? - jqueryWhy does my field border affect content / block INSIDE? - htmlLinq to SQL: a left join in a grouped set makes Cross Apply / Outer Apply - group-byPhone for Windows 7 - windows-phone-7Getting WM_COPYDATA in Python - pythonAll Articles