This is something I wrote for myself. Feel free to correct it if it's wrong! (p.s. I vote for adaptive to not strip out the classes...)
Views & CCK: Adaptivetheme strips out all Views and CCK classes as of version 2.2. You must copy Views & CCK templates into your subtheme folder and rename them if you need custom CSS for a View. For Views:
1. Type in a class in the View CSS Class field. (optional, I used it for attachments)
2. Make a folder inside the subtheme folder called templates.
3. Make a folder inside this folder for each view.
4. Click on "Theme information" in the view. Copy the view template from the Views Module folder: views/theme/ and paste it into the appropriate folder in your subtheme. (The top view template views-view.tpl.php is probably all you need) Rename it according to how detailed you need to be.

CommentFileSizeAuthor
#3 views-css-class.png48.46 KBfrank pfabigan

Comments

Jeff Burnz’s picture

Actually this is not fully correct - there is no need to duplicate/add the templates if you just want to add back the normal classes provided by Views and CCK - just go to the theme settings page and under Advanced Theme Settings > Theme Development Settings you'll find two fieldsets for changing which classes get printed for both Views and Fields (amongst many others).

I'm not sure exactly what you mean by "View CSS Class field", normally I might use Skinr to add a special class to a View, in which case Adaptivetheme will print this in the View automatically without needed to adjust or change anything.

So unless you want to change the actual HTML provided by AT's template overrides, then you don't need to copy those templates into your subtheme - just set what classes you need in the theme settings.

ClaudiaB’s picture

Thanks Jeff!

frank pfabigan’s picture

StatusFileSize
new48.46 KB

i think what claudiaB meant, is exactly what i am looking for. views itself offers a way to add css-classes to a view. see attached screenshot. enabling the advanced-features (theme development... > add or remove css classes > views classes > ...) isn't successful. the css-class set in views shows not up on the html-output of the page (tried flushing all caches, too - admin menu).

how to get this specific class into html-output?

Jeff Burnz’s picture

Category: support » bug

Ah ok, now I see, I will check this, sounds like a bug.

Jeff Burnz’s picture

Component: Documentation » Code
Status: Active » Fixed

I've committed a fix to CVS, for now if you want to fix this yourself I suggest you copy the views-view.tpl.php file from Adaptivetheme core to your subtheme and make a change as per:

// User specified classes if any.
$classes[] = $css_class; // add this line just above the skinr classes, around line 41 or so.
//Skinr module classes.
$classes[] = $skinr;
if ($classes) {
  $views_classes = implode(' ', $classes);
}
frank pfabigan’s picture

Component: Code » Documentation
Category: bug » support
Status: Fixed » Active

wow, thanks, that was fast ^^

Jeff Burnz’s picture

Status: Active » Closed (fixed)

Cleaning up the issue queue.