Guest
15 May 2013 12:00

not sure what I am doing wrong but...

I set "field class" parameter for one of my fields , but teh css class is onot being loaded

I filled in the parameter

I created the class in my site template main css file, and uploaded it to my site

field still not styled (it is a textarea field with html NOT enabled)

to display this record I am using defaul template, just customized for the title, I am not calling fields by ID or anything, so I guess "field class" parameter should just work

page where I am testing

http://174.132.147.254/ ~sarteano/it/component/cobalt/voce/35-eventi-e-news/7-titolo-lorem-ipsum-dolor-sit-amet?Itemid=153

firebug says this

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
16 May 2013 01:12

open template and change all field->class to field->fieldclass


Guest
16 May 2013 05:21

your suggestion worked, but now field class is being applied also in submit form...


Sergey
Total posts: 13,748
17 May 2013 06:24

Rigth. It will apply here and there.

To avoid use wrapper also. For example in article template

article .cobalt_subtitle {

//.....

}

Then CSS will apply only to this class inside

<

article> tag. And not in the form.


Guest
17 May 2013 06:50

mhhh... not working

in my site template custom css files I inserted

article.cobalt_subtitle {

font-size:130%;

font-style:italic;

line-height:1.3em;

}

it was not working, so I tried to insert it in default_record_blog_custom.css

fiel instead. Still not working

I meanf, after correcting the css class like this the class is not being loaded at all

I checked the template I am using (I also attch it) the "article" tag is there

so what am I doing wrong?


Sergey
Total posts: 13,748
17 May 2013 07:53

There have to ne a space between

article. cobalt_subtitle

When there is no space it looks for tag article of class cobalt_subtitle and with space it looks for class cobalt_subtitle inside tag article.

Powered by Cobalt