Jump to content
Allen Lawson

How to Add a New Style Sheet

Recommended Posts

Hello there! I was just wondering..Lets say you have a site with 50+ pages. And lets say you would like to add a new stylesheet, or your want the original one in a Folder called styles. How would you go about adding a new stylesheet without going into every page and changing it manually?Any answers / coding you can give would be great. Cheers!

Share this post


Link to post
Share on other sites

I would go the route of using PHP and create a page called 'header.php' and inside that page has all the info for the header... like doc type.. scripts.. CSS files.. everything that goes in the <head></head>.. Then for each page for your site, you include that file: include("header.php"); Whenever you want to make changes to the header file, you just do it in one place and it takes effect for the whole site/pages. Same goes for footer as well incase you need to make changes for that, like the copyright year. Basically page will look like this: <?phpinclude("header.php");?> content here <?phpinclude("footer.php");?>

Share this post


Link to post
Share on other sites

I have two problm:first problem, when i compil my site to the navigateur, at first time i have a " liste de repertoires" so i wont that automaticly the navigateur connect to the page .second problem, i wont to add a theme from a exemple site to my master page, so i wont to have the solution to this problem.

Share this post


Link to post
Share on other sites

No sorry! but you have a third problem, in that you should have posted your comment in its own new topic and not hijack someone else's topic which is totally irrelevant to your posting.

Share this post


Link to post
Share on other sites

You could just dig in and create an include, then write the call into all 50+ pages. Better to do it now than when you have 100+ pages. Copy/Paste is a wonderful thing. :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...