![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Registered User
Join Date: Jul 2007
Posts: 8
|
How to include html code
What most webmasters do to include html code to their pages like a menu on top of every pages of the site that can be updated without manually change all these pages.
What is the right way to do this for seo, server speed and user friendly I need step by step details for server configuration Thanks in advance
__________________
Redmark ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
Registered User
Industry Role:
Join Date: Mar 2013
Posts: 26
|
Most of us is happy to help you, but nobody works for free.
![]()
__________________
pervypig.com |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Dec 2012
Posts: 184
|
What kind of site do you have? Purely HTML or is it handled through a content management system?
If it's the former, you need to look into HTML and CSS. http://www.w3schools.com/ That website is very helpful.
__________________
www.tittytweaker.com |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Sep 2012
Posts: 827
|
You can either use a content management system (like Wordpress, or Joomla) or PHP.
To start make header.php, index.php, and footer.php, and then you can work on adding the rest of the sites (between the header and footer; site1.php, site2.php etc). You are going to use php "include", and as the index.php loads first you are going to add include 'header.php' and include 'footer.php' on the bottom of the index file. So basically you need to do it with php. Then you can start working on custom titles for every page etc. There is a lot of info about it on the Internet. |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,058
|
Quote:
It depends on what you are building and what kind of framework (cms) you may be inside of. Each method has trade offs in speed, generally the more complex the scheme the longer it takes to complete. As far as seo and user friendliness that has everything to do with the actual web design and absolutely nothing to do with how you include the html code (unless you are doing something funky like having your pages written entirely from a javascript call. If you are doing that you are purposely not making it seo friendly.) .
__________________
All cookies cleared! |
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#6 |
Registered User
Join Date: Jul 2007
Posts: 8
|
Thanks everybody for your answers
I saw websites using dynamic pages with .php and .html Using .html for dynamic pages can slowdown the server, is this true?
__________________
Redmark ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Apr 2013
Posts: 122
|
what you are referring to is called php function include.
if same content on your site is gonna appear on many pages then you create a separate file for it and just use this code in pages, where you wanna sho it. <?php include(filename.php); ?> read some books on php and html, there are loads of material online and for free too. good luck. |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Dec 2012
Posts: 283
|
Ditto on php include function as others have said.
|
![]() |
![]() ![]() ![]() ![]() |