How do you add grid classes to different fields inside a view?
I'm assuming this has to do with a .tpl file or a preprocess function?

Been struggling with this for a few days so I thought I'd ask here.

Thanks,
Nimi

Comments

Jose Chaves’s picture

I have a similar problem, I have a Views Grid display (with Panel Fields) that is breaking lines and I need to solve this. I can't find out where and how.

Where I need a result like:

Name: Lorem ipsum dolor sit amet in the same line

what's happening is two kinds of results.

This:
Name:

Lorem ipsum dolor sit amet

and this:
Name: Lorem ipsum
dolor sit amet

Any suggestions? Thanks!

dgsiegel’s picture

you could use the semantic views module to add classes to each of the fields

Jose Chaves’s picture

thanks for helping.

ishmael-sanchez’s picture

Category: task » support
Status: Active » Fixed

You can also use the style settings in views to add grid classes if need be. Or you can render the view as a content display and use the field.tpl.php to add grid classes as well.

Status: Fixed » Closed (fixed)

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