2

I would like to see a list of pages where a particular style is used so I can either delete/modify it.

0

2 Answers 2

4

You can see a list of selectors not used on a page using external tools, there is no way for drupal itself to create the list for you however.

You can find some suggestions here: https://stackoverflow.com/questions/33242/how-can-i-find-unused-images-and-css-styles-in-a-website I personally use the chrome developer tools as described in the above link.

1

I can say that this is not possible.

A particular style is applied on either an id, class or an element. In Drupal, a page is generated by lots of different mechanisms including templates, modules, blocks, etc... So there is no easy way to track a particular id or class and find exactly in which pages does it exist.

2
  • Would it not be possible to build an indexer that works this out? Jan 29, 2013 at 10:04
  • as penten's answer also suggests, there maybe are some external solutions. But I cant think of a solution inside Drupal. Jan 29, 2013 at 10:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.