Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-12-13 14:36:52

pierlu
Member
Registered: 2014-08-12
Posts: 153

manage the css in a summary

I created a summary with three paragraphs, I would like to give each paragraph a class to manage them independently is possible?

Offline

#2 2014-12-13 16:29:33

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: manage the css in a summary

I take it you mean about adding classes in the article tab using textile. You can by adding

p(class1). your first paragraph

p(class2). your second paragraph

p(anotherclass). your third paragraph


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2014-12-13 18:45:53

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: manage the css in a summary

colak: For what are the dots in the classes? I think p(class1). your first paragraph is enough.

Offline

#4 2014-12-13 19:03:55

pierlu
Member
Registered: 2014-08-12
Posts: 153

Re: manage the css in a summary

Inside the article by Textpattern?

Offline

#5 2014-12-14 06:29:48

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: manage the css in a summary

GugUser wrote #286500:

colak: For what are the dots in the classes? I think p(class1). your first paragraph is enough.

You are right:) corrected above

pierlu wrote #286502:

Inside the article by Textpattern?

yes:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2014-12-14 09:15:48

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: manage the css in a summary

pierlu wrote #286502:

Inside the article by Textpattern?

You can do it for all articles at once, replacing <txp:excerpt /> in article forms with

<txp:etc_query data='<txp:excerpt />'
	replace="p[1]@@class=class1;p[2]@@class=class2;p[3]@@class=class3" />

Offline

#7 2014-12-14 18:45:06

pierlu
Member
Registered: 2014-08-12
Posts: 153

Re: manage the css in a summary

I tried but I can not, in my opinion I have to give a CSS class to the paragraphs in the article. I tried with p (class1). your first paragraph but I results

Offline

#8 2014-12-14 19:20:57

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: manage the css in a summary

pierlu wrote #286524:

I tried with p (class1). your first paragraph but I results

You seem to have a serious problem with continually adding too much blanks. Watch these. Try p(class1). your first paragraph and copy/paste it. You’ll see it works.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB