Image

Homepage
USWDH Design
USWDH Templates
USWDH Hosting
Square Peach Music


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

Step 1:
CHOOSE HOME PAGE TO USE: | More details
This template includes 3 homepage options:
  • To use the default homepage, move the "OPTIONAL-Home.htm" and "OPTIONAL-No-Animation-Home.htm" into the "extras" folder.

  • To use the no animation homepage, move the "index.html" and "OPTIONAL-Home.htm" into the "extras" folder. Rename the "OPTIONAL-No-Animation-Home.htm" to "index.html".

  • To use the OPTIONAL-Home, move the "index.html" and "OPTIONAL-No-Animation-Home.htm" into the "extras" folder. Rename the "OPTIONAL-Home.htm" to "index.html".
Step 2:
EDIT HEADER: | More details
Edit the "logo.png" in the picts folder with your logo image. The header background HEX color can be found in the "style.css" file. A "logo.PSD" file is located in the "extras" folder. The default font used is 31 points "AvantGarde Bk BT" with a letter spacing of 7. Edit the "header.js" to change the type of graphic to use.

OPTIONAL PLAIN TEXT HEADER: To use the text header option, edit the "var logotype" in the "header.js" from "graphic" to "text". Edit the "var logotext" "YOUR WEBSITE TITLE" text in the "header.js" with your site name.

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

Step 4:
EDIT CONTACT INFO: | More details
Open the "contact.js" in Notepad or any text editor file and change the website 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 5:
EDIT THE CONTACT FORM: | More details

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.

NO FORM OPTION: If you DO want to use the contact form, move the "No-Form-contact.htm" into the "extras" folder. 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".

Step 6:
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 7:
REPLACE HOMEPAGE SLIDESHOW IMAGES (optional): | More details
The homepage (index.html) includes a jQuery responsive slideshow application. In the "JQuery" folder replace 6 images, "imageJQR-1.jpg" through "imageJQR-6.jpg". Make your images 1000 x 425 pixels. This will update the homepage animation. Click the link above for details and options.

The location of the "Next & Prev arrows" and colors for the round buttons can be edited in the "style.css".

Step 8:
EDIT TWITTER, FACEBOOK, LINKEDIN LINKS: | More details
Open the "social-links.js" in a plain text editor. Edit the 3 links with your social network links. The "social-links.js" includes "yes/no" variables to turn off any or all of the social links.

Step 9:
payments.htm PAYPAL PAYMENT PAGE:
This template includes a Paypal payment page called "payments.htm". Edit the "paypal@your-web-domain.com" in this page with your Paypal e-mail and you can use this page to accept custom payments by sending clients a link to this page and having them fill in the amount on the payment page. To remove the form, delete the code between the notes for the Paypal form in the "payments.htm".

Step 10:
SETUP GALLERY & CART: | Gallery setup help | Image text editing
Because this template includes a slideshow for each gallery, plus text with each image, the best way to setup the images in the gallery is not to actually edit the gallery HTML pages and change the picture names on each individual page. The fastest way is to simply replace the pictures in the "gallery" folder with your own by overwriting the files that are in there now and using the same generic names.

Gallery thumbnails, named "gallery?-?.jpg" in the "gallery" folder, are 150 x 100 pixels in size. Gallery large closeup view images, named "Fgallery?-?.jpg", are 700 x 467 pixels. You can make these images any height you would like, but the 150 and 700 widths can only be changed by editing the "style.css" (see notes in the css file to find these width classes).

Click here to not use text in the viewer with your images and for other options.

EXAMPLE: SETUP GALLERY IMAGE 1-1: In the "gallery" folder replace the "gallery1-1.jpg" with a 150 x 100 thumbnail image. Replace the "Fgallery1-1.jpg" with a 700 x 467 .jpg of the same image. In the "gallery_pages" folder edit the "Fgallery1-1.htm" with your item details and order button details (see next step). Now open the "gallery1.htm" page and check the first image on the page, click on the image to see that it is setup. Your first image will be setup and you can proceed to gallery image 1-2. Click links above for more details.

SETUP "gallery-home.htm" PAGE: This page is an index of your galleries.

See watermark and viewer options below.

Step 11:
PAYPAL SHOPPING CART SETUP (TYPE 2 FORMS): | More details
Paypal shopping cart forms have been included in the "Fgallery?-?.htm" pages in the "gallery_pages" folder. Follow the steps below to setup the shopping cart pages. This template includes "Type 2" Paypal forms.
  1. Setup a Paypal merchant account.

  2. Edit the "paypal@your-web-domain.com" in the "header.js" in 1 place (near the top) with your Paypal e-mail. This will update the view cart button.

  3. You will edit the "5290739" in each form in the "Fgallery?-?.htm" pages in the "gallery_pages" folder with your generated product number and edit or remove the options. This will be the following code:

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

    You only need to edit the "hosted_button_id" code and the options text.

    Setup the 1st form: Edit the Paypal form in the "Fgallery1-1.htm" page. Find this note "START PAYPAL FORM 1-1". Click here for steps to setup the forms.

  4. Edit all forms as shown on the Paypal Type 2 Forms setup support page in the html pages in the "gallery_pages" folder.

  5. The "Fgallery?-?.htm" pages in the "gallery_pages" folder include options for the Paypal forms. These options can be edited or removed. See the Paypal Type 2 Forms setup support page.

  6. Your optional return page is named thanks-payment.htm. Include a full link to your domain to this page if you use the return option when generating the forms. You can optionally not set this while generating forms and use the Paypal default return page.

Step 12:
SLIDESHOWS SETUP: | More details
Images in the 6 slideshows correspond to the images in the 6 galleries and are setup when you edit the gallery images in the step above.

The slideshows use a "responsive" jQuery script located in the "jQuery" folder. You can add and remove images in the slideshow 1-6 .htm pages. Click link above for details and options for the responsive slideshows.

SETUP "slideshow-home.htm" PAGE: This page is an index of your slideshows.

Step 13:
EDIT DYNAMIC FAQ PAGE: | More details
In the "faq.htm" edit the text between the "FAQ 1" notes area for FAQ question #1. Edit only the question and answer text and do not delete any of the other code in this area. Edit or remove the other FAQ questions on this page.

Step 14:
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 15:
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 16:
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". Three stages are used for screen widths of 890, 740 and 482. 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 right sidebar is setup to not display on mobile using "#sidebar-content display: none;" in the "media-queries.css".

Mobile Menu: The mobile menu includes only one "stage" width threshold of 640 in the "menu-drop.css". It will stack the menu items when viewed on smartphones. See "MENU EDITING" below and also testing MQs in support.

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 in the "media-queries.css" to setup the mobile font sizes. See responsive support details.


 
Options:
 

MENU EDITING: | More details
This template includes a responsive drop menu. You can edit 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. Click link above for more details.

OTHER MENUS: | Menu editing help
This template includes some links in the "footer.htm" you can edit and also a menu for the gallery named "menu-gallery.js". You can add more page links by copying one link in the "menu-gallery.js" or "footer.htm" and pasting it right below the next. Optionally back up your files before you edit them. Keep the names short so your pages do not get too wide.

menu sample

Open the "menu_gallery.js" file in Notepad and copy and paste to add more galleries to the navigation. This menu hides on mobile using a "display: none;" in the "media-queries.css".

Edit the colors for the gallery menu in the "style.css".

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.

WATERMARK SETUP: | More details
In the "picts" folder is a 400 x 50 pixel image called "watermark.jpg". You can replace this image with your own .jpg image. If you change the size of the watermark, edit the height and width of the two "#gallery-watermark" classes in the "style.css".

Turn the watermark off in the "watermark.js".

Edit the location and opacity in the "#gallery-watermark" class in the "style.css".

GALLERY IMAGE VIEWER OPTIONS: | More details
You can change some options for the gallery image viewer page (image-viewer.htm) by editing the "javascripts.js" in Notepad. Options include new browser window, or popup for the view.

EDITING THE FOOTER "footer.htm": | More details
You will edit the "footer.htm" like any other HTML page. Editing the "footer.htm" will update all the pages at one time.

If you need more height in the footer you can edit the "footer-height" style class in the "FOOTER OPTIONS" section in the "style.css".

ABOUT THE TEXT WITH EACH IMAGE: | More details
When you click any gallery thumbnail the browser will open the "image-viewer.htm". This page includes javascript to show the Fgallery image and also the Fgallery .htm page that is in the "gallery_pages" folder. You have some options with this setup. See more details.

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.

Edit menu colors and fonts in the "menu-drop.css". The menu does not use any code in the "media-queries.css".

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" and "JQuery" folders.

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 four classes are included in the "style.css". Classes ".pagewrapper", "#contentbox", "#contentbox-home" and ".galpage #contentbox".

SITE MAP PAGE:
The "site_map.htm" links to all your webpages so search engines can find your site map and properly list all your pages when users search at search engines. Add links to all your pages on the "site_map.htm" and submit this page to all search engines.