10 years ago
13
Topic

Hi there!

Can anyone tell me where to change the line with <div id="cck1r" class="cck-f100 cck-pad-8"> ? i need to insert a class there for a content type.

thanks a lot

Elisa

Get a VIP membership
32 Posts
G.Bob
10 years ago
8
Level 1

hello

it is not necessary to change anyone in the code, simply add your own class in the form as attached example.

Open your form, "content" - "template" => CSS => Root class

10 years ago
7
Level 2

Thank you, that was that what i´ve searched for!!

10 years ago
6
Level 3

I changed the root class but it´s not inserted into the <div id="cck1r"> but in each blog item. :-(

32 Posts
G.Bob
10 years ago
5
Level 4

Hi

?? I just do it, I put "MyClass" in root class and the result : <div id="cck1r" class="MyClass cck-f100 cck-pad-10">

You can do that in in the differente view template : List and search type or  Form and content type and (site:template, intro:template, content:template)

10 years ago
4
Level 5

No, sorry it´s not inserted in this line :( please see attachment...

10 years ago
3
Level 6

10 years ago
2
Level 7

10 years ago
1
Level 8

Sorry had trouble with inserting the image :) so my class is "ergebnisliste" and it´s inserted in each blog item instead of root. unfortunately

4229 Posts
Kadministrator
10 years ago
0
Level 9
http://www.seblod.com/products/52

This is hardcoded in template (.e.g seb_one), you can copy a template and change it to your liking. Other options is to use Minima template

32 Posts
G.Bob
10 years ago
3
Level 1

Hi Klas, DesignBengel

Am I wrong! I'll attached a document with my approach. And I recovered well in my class and my code I use the basic template "seb_one ..."

Best regards

10 years ago
2
Level 2

It works everywhere except in List & Search Type "Item" - it´s added there in each item instead of the root. 

4229 Posts
Kadministrator
10 years ago
1
Level 3

I tested this now and I was wrong with my first answer - It works as in G.Bob wrote.

When using blog layout, you have 2 root template css options - one for Item (added to each item) and another (real root)  if you go to List tab and then clik on Template on the right side.

10 years ago
0
Level 4

Hi Klas! That´s´it! Thank you very much!!!

Get a VIP membership