Solved Is there an easier way to change a whole site

December 28, 2010 at 00:37:24
Specs: Windows Vista, 2GB
I am in the process of setting up a website and every time I want to change or add something to every page, I have to do each one individually. Is there some way around this like some css or php trick I could use to change every page of my website just by modifying one or two files? My website will have well over 1000 pages when it is completed so I am trying to figure everything out now while I only have about 30 pages, but I know that in the future I may want to change or add something to all the pages and I would not want to go through thousands of html files and do it manually. I know that there must be some way to do something like that because Facebook is always changing how people profiles and stuff look. Please help me. And if you need more info just ask. Thank you.

See More: Is there an easier way to change a whole site

Report •

✔ Best Answer
December 28, 2010 at 01:15:12
If you use a Content Management System like Wordpress, it's just a matter of manipulating the PHP statements or even the settings in the control panel.
----------
If you had a section on your website like
<div class="adverts">yada yada display the ads</div>
you could set the display attribute to none in the CSS document for that class
.adverts {display:none;}
and that will hide the display of that section, although it will still be loaded.

I'm thinking you're looking to benefit from a CMS based on reply 3.



#1
December 28, 2010 at 00:47:25
Add class and id attributes to your HTML elements, and then use CSS to change how the elements are formatted. Check out http://www.w3schools.com/css/defaul... for an in-depth look at CSS.

Two important things to remember when developing CSS:
-External style sheets are preferred to internal and inline ones
-Don't use tables for creating a site layout. Use div tags + CSS instead


Report •

#2
December 28, 2010 at 00:53:23
I was actually meaning more content than design and layout. Anything that can help with that?

Report •

#3
December 28, 2010 at 00:57:35
Here's a better example: on blogger.com, you can add and remove gadgets from your blog just by changing one thing and then all your pages are also changed.

Report •

Related Solutions

#4
December 28, 2010 at 01:01:03
Mainly right now I want to add ads to my site and maybe take them off later. Is there a way I can implement that into a css element that I already have on all of my pages so I only have to change the css file?

Report •

#5
December 28, 2010 at 01:15:12
✔ Best Answer
If you use a Content Management System like Wordpress, it's just a matter of manipulating the PHP statements or even the settings in the control panel.
----------
If you had a section on your website like
<div class="adverts">yada yada display the ads</div>
you could set the display attribute to none in the CSS document for that class
.adverts {display:none;}
and that will hide the display of that section, although it will still be loaded.

I'm thinking you're looking to benefit from a CMS based on reply 3.


Report •

Ask Question