Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-11-10 21:26:49
- bumblebeezus
- Member
- Registered: 2005-11-09
- Posts: 14
how come my page won't link up with my css file?
i created a default page and created my own css file “reckless_style”. it looks like this:
<link rel="stylesheet" href="reckless_style.css" type="text/css" media="screen" />
when i first looked at the link on the txp default page it looked like this (href="<txp:css />"
). my question is how do i format the href code to use my css file not the default one…or should i make my css file the default one?
one more question…when i try to view my pagewith the url (www.recklessabrandon.com) i get an internal server error. however, when i look at this url (www.recklessabrandon.com/index.php) i can see my page (without the styles). how do i change this so that when my normal url (www.recklessabrandon.com) is used i don’t get the server error.
this is where i apologize because i almost know nothing of php…server stuff…or anything other than xhtml and css.
Offline
#2 2005-11-10 21:30:44
- bumblebeezus
- Member
- Registered: 2005-11-09
- Posts: 14
Re: how come my page won't link up with my css file?
hmmm…somethings look like they were omitted from my post. probably because iam ignorant of security issues and didn’t know posting that stuff would get taken out of my post.
Offline
#3 2005-11-10 21:37:27
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: how come my page won't link up with my css file?
You can use < code> < /code> tags (without the spaces) to display code.
Offline
#4 2005-11-10 21:43:52
- bumblebeezus
- Member
- Registered: 2005-11-09
- Posts: 14
Re: how come my page won't link up with my css file?
ok…got my stylesheet to link up. i just created a images folder inside of the /textpattern/ folder and it worked…not sure if this is the best way to do this, but it worked.
i’m still wondering how i get my “homepage” to show up when i type my plain old url (www.recklessabrandon.com) i’m still having to add the /index.php on to the end of it to see a page and not get the error msg. any help here would be radtastical!
Offline
Re: how come my page won't link up with my css file?
If your custom style is being used for the site in general, then yeah, you should copy the contents into the default style and use that…why work against the core that’s already established for you? (rhetorical) You’ll come to appreciate that working with TxP’s core features, rather than against it, is soooooooo much easier (i.e., use the defaults whenever you can.)
Next, I’ll wager that you created an external custom CSS file, and not one in the admin interface. Create another style in the styles panel with your custom details. Then if you want to use it, you need to go to the sections panel and map the new style to the proper section (whether default or otherwise).
Although you can, you do not need to add styles to your server, which is what I’m guessing you are doing.
Offline
#6 2005-11-10 21:57:27
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: how come my page won't link up with my css file?
The css problem was probably caused by the relative url.
Alex
Offline
Re: how come my page won't link up with my css file?
It sounds to me like you are on a fast track to killing your installation by Frankensteining it to death.
No, you should never add folders inside the /textpattern/ folder, and why adding an images folder there would help you with the styles problem is beyond even worrying about. Back track and set it up properly or you face impending doom.
Offline
#8 2005-11-10 22:01:56
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: how come my page won't link up with my css file?
i’m still wondering how i get my “homepage” to show up when i type my plain old url (www.recklessabrandon.com) i’m still having to add the /index.php on to the end of it to see a page and not get the error msg. any help here would be radtastical!
You might try changing this line in .htaccess
RewriteRule ^(.*) index.php
to
RewriteRule ^(.*) /index.php
Offline
#9 2005-11-10 23:03:23
- bumblebeezus
- Member
- Registered: 2005-11-09
- Posts: 14
Re: how come my page won't link up with my css file?
thanks, that worked out great. sorry about being “that guy” asking all the repetitive questions. i’m still new to blogs as well. i do apreciate the help though.
Offline