Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-05-14 16:21:42

milauskas
New Member
Registered: 2009-04-20
Posts: 8

Wrong style sheet affecting my site

Hi,

I’m new to Textpattern and developing a site locally before going live. I think I’ve got a conflict between stylesheets.

I created a mockup/plain HTML version of the site prior to recreating the site in Textpattern and I created a stylesheet for those HTML pages. This stylesheet is called styles.css.

In the process of recreating the pages within Textpattern I copied the stylesheet into the Styles portion of Textpattern and named it Styles2.css.

All my sections/pages are set to use styles2.css, however, no styles are applied when I view the site.

Where is the stylesheet saved when you create it? I can apply the ORIGINAL style sheet to a page/section by placing a link to styles.css in the code, but if I change the link to styles2.css, no style is applied.

What am I missing? Thanks!

Offline

#2 2009-05-14 16:29:02

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

Re: Wrong style sheet affecting my site

I guess that by saying that you “copied the stylesheet into the Styles portion of Textpattern” you mean that you pasted the content of your style sheet in the database under the presentation>style tab.

If this is the case delete the css at the end of the name and call you stylesheet in presentation>pages by adding its name in the txp tag. ie

<txp:css n="styles2" format="link" />


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 2009-05-14 16:40:03

milauskas
New Member
Registered: 2009-04-20
Posts: 8

Re: Wrong style sheet affecting my site

Worked like a charm! Thanks so much!!!

Offline

Board footer

Powered by FluxBB