Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-05-13 14:25:36

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Custom CSS for a blog post

I made a post recently which had some extra formatting. i used notextile. to embed some custom CSS, but for some reason this ended up clogging the meta data when i tried to share it on facebook. moving forward, has anyone used a particular technique for using a special stylesheet for a blog post? thanks.

Offline

#2 2010-05-13 17:19:14

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: Custom CSS for a blog post

how about using custom fields and have this in the <head> ?

<txp:if_custom_field name="css">
<link rel="stylesheet" type="text/css" href="css.php?n=<txp:custom_field name="css" />" media="all" />
</txp:if_custom_field>

(not tested)

Last edited by JanDW (2010-05-13 17:22:47)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#3 2010-05-15 18:57:51

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: Custom CSS for a blog post

TXP Tips has an article on this.


Prrrrrrrr

Offline

#4 2010-05-18 02:48:34

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: Custom CSS for a blog post

TNT wrote:

TXP Tips has an article on this.

thank you – it is referencing exactly what i was looking for as well (heavily designed posts).

Offline

Board footer

Powered by FluxBB