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.

CommentFileSizeAuthor
#8 Picture 10.png70.33 KBescoles
#1 ui7.png16.04 KBdawehner

Comments

dawehner’s picture

Status: Active » Fixed
StatusFileSize
new16.04 KB

Its in the most outer div of views. See screenshot

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

timwood’s picture

Category: support » bug
Status: Closed (fixed) » Active

We 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?

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have overriden views-view.tpl.php?

timwood’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

Yes 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

escoles’s picture

Status: Closed (fixed) » Active

I have no over-ridden views templates, and am not seeing the custom CSS class on any view displays. Have tried block and page displays.

escoles’s picture

StatusFileSize
new70.33 KB

Attaching 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).

merlinofchaos’s picture

#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.

escoles’s picture

The 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.

dawehner’s picture

Status: Active » Fixed

So this issue is fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

doublejosh’s picture

I'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