Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-15 22:24:36

scdoody
Member
Registered: 2006-10-18
Posts: 129

External Style Sheet

I’m tired of editing my CSS in the Style tab of Textpattern.

How can I move it all over to an external style sheet that I can manually upload and edit in a program like Dreamweaver?

Offline

#2 2007-11-15 22:31:13

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: External Style Sheet

Um, create a new file in Dreamweaver, upload it and change the link to it in your page(s)?

Offline

#3 2007-11-15 22:38:25

scdoody
Member
Registered: 2006-10-18
Posts: 129

Re: External Style Sheet

I know that – but where are style sheets called within the main Textpattern framework?

Offline

#4 2007-11-15 22:47:20

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: External Style Sheet

the stylesheets that you edit via the style tab are in your database. if you don’t want to use it, then just do what mary said.

Offline

#5 2007-11-15 22:48:37

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: External Style Sheet

“Called”? Are you asking what tag makes the link to them? <txp:css />.

Offline

#6 2007-11-16 07:28:25

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: External Style Sheet

If you want to move your stylesheets from TXP styles tab to a directory within your website, copy/past all styles from your back-end to an individual stylesheet file, place it into your root website into a directory (ie: /css) and now call it within your TXP pages with the help of this line :

<link rel="stylesheet" type="text/css" media="screen, projection" href="<txp:site_url />css/default.css" />

Assuming in this example above your stylesheet name is “default.css” Note. For convenient use, you can create a form (type misc) named “doctype” and place in it all your xhtml code from <?DOCTYPE (…) to </head> tags. Call this form into all your pages with this line :

<txp:output_form form="doctype" />

Tips : for my convenient I prefer to stop my “doctype” form before the final </head> tag and place it within all my pages. If I want to add a link to another files (stylesheets, javascripts) I can personalyse it into the page I choose.

am I answering to your question?

Remember : TXP is the best CMS of the world :)

Cheers,

Last edited by Pat64 (2007-11-16 07:36:00)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

Board footer

Powered by FluxBB