image

Homepage
XMG Design
XMG Layouts
XMG Hosting

XMG Design
Setting up your website template:
 
HTML5 Responsive & Paypal "Type 2" Forms
KEY: MQs below indicates "media queries". The responsive css code for mobile located in the "media-queries.css". See MQs section below and also check the support details.
 
Important: MQs in this template affect the menu: When the MQs kick-in, the menu will "stack" the menu tabs. See MQs section below.

Step 1:
EDIT HEADER: | More details
Open the "header.js" in a text editor like Notepad or TextEdit and edit the text following "var logotext" (Your Website Title) with your website name. Edit the "Slogan or phone number 847-555-5555" with your logo slogan. Click link above for details. To use a graphic logo edit the "var logotype" from "text" to "graphic". Use all lowercase.

The header background HEX color can be edited in the "style.css" file. A layered "logo.PSD" file is located in the "extras" folder. The default font used is 40 points "AvantGarde Bk BT".

Step 2:
EDIT COPYRIGHT: | More details
Open the "footer-copyright.js" in Notepad or any text editor file and edit the "Yourcompany.com" text with your name or company name. This will update the footer info on all pages.

Step 3:
EDIT CONTACT INFO: | More details
Open the "contact.js" in Notepad or any text editor file and change the company name, address, phone and fax numbers, and e-mail address (edit the email in 2 places). This will update the contact info on the contact page.

Step 4:
EDIT THE CONTACT FORM:
If you DO want to use the contact form, move the "No-Form-contact.htm" into the "extras" folder and see the links below. If you want to NOT use a form on the contact page, move the "contact.htm" into the extras folder and re-name the "No-Form-contact.htm" to "contact.htm".

Click for current info on setting up the template forms.

Click for info on adding more fields to the forms.

Click for changing form sizes or colors.

Step 5:
EDIT CONTACT PAGE LOCATION MAPS | More details
This template includes a text location link, a map window and a get directions form. Click link above to setup these 3 areas.

Step 6:
EDIT PRODUCT PAGES:
If you are using the Paypal order forms, see the Paypal section below for setup info. If you do not want to use the order forms you can move the "products.htm" into the template "extras" folder and rename the "NO-FORMS-products.htm" to "products.htm".

Step 7:
EDIT RIGHT SIDEBAR: | More details
Open the "sidebar.js" file in Notepad or any text editor, and edit the text and links with your own text. Editing the "sidebar.js" will update all HTML pages at one time. Click link above for details.

Step 8:
EDIT SOCIAL ICON LINKS: | More details
Open the "social-links.js" in a plain text editor like Notepad. Edit the 4 links with your social network links. The "social-links.js" includes "yes/no" variables to turn off any or all of the social icon links.

Step 9:
EDIT PAGES: | Software choices | Notepad editing
Edit the text in all HTML pages with your website information. You can use Expression Web, Frontpage, Dreamweaver, any wysiwyg HTML editor or a text editor like Notepad. Take care not to delete any of the HTML tags that surround the text.

Step 10:
EDIT TITLES, DESCRIPTIONS AND KEYWORDS: | More details
Open each of the HTML pages and change the titles (at the very top of the page) and also the description and the keywords with your product or service details. You can edit one page and copy and paste to the other pages. Be careful to only change what's inside the "" so you don't disturb the html code. Page titles are important so your site will get a good listing at Google, Yahoo! and other search engines.

Step 11:
UPLOAD: | More details
Upload the pages on to your hosting company's server using ftp software or Windows Explorer or your control panel. Be sure to upload all template files and folders and all files inside the folders. You do not need to upload the "extras" folder.


 
The Media Queries Responsive Code
 
More details | MQs in this template control many parts of each webpage to conform for mobile and tablet. The responsive MQs css classes are located in the "media-queries.css". Five stages are used for screen widths of 996, 890, 740, 482 and a min width 741 for the menu unhide. As the browser width is made more narrow and each "stage" width threshold is reached, code defined in the "media-queries.css" will take effect changing the webpage layout. You can edit these sizes in the "media-queries.css" using any plain text editor.

The "media-queries.css" is for mobile and includes some of the same class names as the "style.css" to alter these classes as the browser width becomes more narrow.

When editing any font sizes in this template you will need to edit the class in the "style.css", then edit the duplicate class(es) in the "media-queries.css" to setup the mobile font sizes. See responsive support details.


 
Options:
 

MENU EDITING: | More details
You can change the names of the links like "About" or "Contact" to other page names by editing the "menu.js". Only change the one instance of the name and not the name with the ".htm" after it unless you have also renamed the .htm page. Whatever you change in the "menu.js" will change every page on the website. Keep the names short so your menu does not get too wide. You can add more pages by copying one link in the "menu.js" and pasting it below itself. Be sure to back up your files before you edit them.

NOTE: If you use a ' in a .js file add a slash before it like this \'

ADDING PAGES: | More details
You can add pages to your website by copying and pasting any one of the pages and renaming it to whatever you need. You can then add links from the other pages or even add the page to the menu by opening the menu.js and copying and pasting one of the buttons below another. There are notes in the "menu.js" to help you add a button.

FONTS & CSS STYLES: | More details | Media Queries | Google Fonts
This template uses Google Fonts. The code that "calls" the font files is the first line in the "style.css". Click above for details.

This template includes Media Queries css code. Edit font sizes in both the "style.css" and "media-queries.css". Click above for details.

You can change your font colors and sizes by editing the "style.css" with a text editor. You can find other font colors by clicking here. Change the font sizes in the "style.css" file. Change the class after the note "THE NEXT LINE CONTROLS THE FONT SIZE ON ALL PAGES" px size to change the font sizes or colors on all pages. Change the "title" px size to change all the title sizes.

PICTURES: | More details
You can replace all pictures with your own. Hover over any image to view the size. You will find all pictures in the "picts" folder.

PAGE HEIGHTS:
So all your pages will maintain a standard height a "pageheight" class with a "min-height" is included. Edit this height in the "style.css".

PAGE WIDTHS:
So all your pages will maintain a standard width, classes are included in the "style.css". See classes "#pagewrapper" and "#contentbox".

SITE MAP PAGE:
The "site_map.htm" is linked from the index.html. It is best not to remove this link so search engines can find your site map and properly list all your pages when users search at major search engines.

USING THE PLAIN NO PAYPAL PRODUCTS PAGE:
Move the "products.htm" into the "extras" folder. Rename the "NO-FORMS-products.htm" to "products.htm".

PAYPAL SHOPPING CART SETUP (TYPE 2 FORMS):
Paypal shopping cart forms have been included in the "products.htm" page. Follow the steps below to setup the shopping cart page. This template includes "Type 2" Paypal forms.
  1. Setup a paypal merchant account.

  2. Move the "NO-FORMS-products.htm" page into the "extras" folder.

  3. Replace the 4 product .jpg images in the template picts folder with your own .jpg images.

  4. Edit the "paypal@your-web-domain.com" in the "products.htm" page in 1 place near the bottom with your Paypal e-mail. This will update the view cart button.

  5. You will edit the "5290739" in each form in the "products.htm" page with your generated product number. This will be the following code:

    <input type="hidden" name="hosted_button_id" value="696969">

  6. Edit all forms as shown on the Paypal Type 2 Forms setup support page.