Hello html pro's. How do I insert the footer.php or footer.html into the index.html ? I guess that it's similar to the theme in the wordpress.org ?: <?php get_footer(); ?> Code (markup): Do I have to include something in style.css? If yes, what should that be? So I guess that I save the codes for the footer in: footer.html or footer.php ? Please be descriptive with details, like an example of the whole site, like: <head> style7 #my foot </head> <body> include footer.what stop include footer.what </body> or whatever it looks like. Thanks a lot! Justin
index.php should be: <html> <head> // Include your stylesheet and stuff here </head> <body> blah blah blah content <?php include('footer.php'); ?> Code (markup): footer.php should be anything you want to include on every page. Probably at least: </body> </html> Code (markup):
Thank you PHPGator and Ourblink. Half job done. Thanks! That's very useful for the .php sites. How do I do this in .html? You say that "include" are not allowed in .html? There must be some general stuff for this. It takes forever to edit 100 .html-files (search and replace) instead of just edit a footer, sidebar or header. Thanks, Justin.
You can include files with .html extensions using php, but the file that holds the <?php include(); ?> must be .php You should check out the below site if your NEED to include .html from .html http://www.htmlgoodies.com/beyond/webmaster/article.php/3473341
Thanks again ourblink, and nicangeli and pradeep.balua So I'm guess that I'm overdoing it here. Probably there's an easy command in Dreamweaver, like "insert global menu" or "insert menu" that allows me to update all menus within a domain from one menu. (How do I do that if possible?) This might be obvious for someone else, but as self-teached you miss something sometimes. Regards, Justin.