What does the "CSS class" basic setting do? Im assuming that this adds a css class to the view div?
I been playing around with it, but when i use firebug I dont see the class listed anywhere. Not sure if this is a bug or that Im using it incorrectly.
Comments
Comment #1
dawehnerIts in the most outer div of views. See screenshot
Comment #3
timwoodWe cannot get our views to output a custom css class either. We are currently using views 6.x-2.11 with Drupal 6.16. Since this ticket was originally about 6.x-2.10, I didn't change the version information, but I did change it to a bug report. Is there anything I can do to debug why this is happening?
beyond67, are you still having this issue?
Comment #4
dawehnerDo you have overriden views-view.tpl.php?
Comment #5
timwoodYes we had! We did it sometime ago so we missed out on the updates to views-view.tpl.php since then. Our theme developer is updating our copy of views-view.tpl.php now with the changes. Is there a best practice for keeping track of template changes for all the contributed modules we are using?
Thanks for the help.
Comment #7
escoles commentedI have no over-ridden views templates, and am not seeing the custom CSS class on any view displays. Have tried block and page displays.
Comment #8
escoles commentedAttaching screenshot of source -- style class "full-page" should be included. I've over-ridden using a copy of the default template so I can be sure of what template I'm using (hence the "over-ridden by..." comment in the screenshot).
Comment #9
merlinofchaos commented#8: It looks like your theme is probably overriding the style template, which is removing the classes. There's a comment in there about adaptivetheme_bc overriding in exactly the spot the style template markup should be showing.
You should probably have opened this as a separate issue, referencing this one, since it's really easy to muddle issues like this very quickly.
Comment #10
escoles commentedThe over-ride comment was simply so I could identify the file. That template file was copied from the Views templates folder.
I won't be pursuing this, have worked around it.
Comment #11
dawehnerSo this issue is fixed.
Comment #13
doublejosh commentedI'm not seeing the class passed through either. No overridden view template. Using the Zen theme.
Where might I attack finding how the theme is killing my class?
Side question for @escoles, how are you getting the view name into the classes? EX: "view-id-new_releases"
I had to use preprocess_block() http://drupal.org/node/1296768#comment-5317258