config.php

The config.php file defines the default settings for your website. The full code is located at the bottom of this page.

Define your website

# Sets the site name and URL $siteName = "Your Website Name"; $siteURL = "http://yourwebsite.com"; # Add the location of your logo image $siteLogo = ""; # Sets address in Google Map # Replace all spaces with plus symbols and replace commas with %2C $siteAddress = "2331+Calvert+St+NW%2C+Washington%2C+DC+20008"; # Site verification # Add the code inside the content tags $googleVerify = "abCdefghijk"; $bingVerify = "abCdefghijk";

Defining your menu

A dropdown menu is automatically created for you as you add links to the menu array.
Each time that you create a new page, you will add its info to this section.
# Creates your navigation menu # You do not need to include the .php extension in the url # Primary links should have a 'parentid' of 0 # Second and third level links should have a 'parentid' of their parent link # Add or delete as needed $menu = array( '1' => array('id' => 1, 'parentid' => 0, 'title' => 'Home', 'url' => 'index'), '2' => array('id' => 2, 'parentid' => 0, 'title' => 'Main Link 1', 'url' => 'mainlink1'), '3' => array('id' => 3, 'parentid' => 0, 'title' => 'Main Link 2', 'url' => 'mainlink2'), '4' => array('id' => 4, 'parentid' => 0, 'title' => 'Main Link 3', 'url' => 'mainlink3'), '5' => array('id' => 5, 'parentid' => 0, 'title' => 'Main Link 4', 'url' => 'mainlink4'), '6' => array('id' => 6, 'parentid' => 3, 'title' => 'Child Link 1', 'url' => 'child1'), '7' => array('id' => 7, 'parentid' => 4, 'title' => 'Child Link 2', 'url' => 'child2'), '8' => array('id' => 8, 'parentid' => 4, 'title' => 'Child Link 3, 'url' => 'child3'), );

config.php

The complete config.php. Enclose the code with PHP tags and save the file as config.php. It should be in the 'includes' folder.
# Sets the site name and URL $siteName = "Your Website Name"; $siteURL = "http://yourwebsite.com"; # Add the location of your logo image $siteLogo = ""; # Sets address in Google Map # Replace all spaces with plus symbols and replace commas with %2C $siteAddress = "2331+Calvert+St+NW%2C+Washington%2C+DC+20008"; # Site verification # Add the code inside the content tags $googleVerify = "abCdefghijk"; $bingVerify = "abCdefghijk"; # Creates your navigation menu # You do not need to include the .php extension in the url # Primary links should have a 'parentid' of 0 # Second and third level links should have a 'parentid' of their parent link # Add or delete as needed $menu = array( '1' => array('id' => 1, 'parentid' => 0, 'title' => 'Home', 'url' => 'index'), '2' => array('id' => 2, 'parentid' => 0, 'title' => 'Main Link 1', 'url' => 'mainlink1'), '3' => array('id' => 3, 'parentid' => 0, 'title' => 'Main Link 2', 'url' => 'mainlink2'), '4' => array('id' => 4, 'parentid' => 0, 'title' => 'Main Link 3', 'url' => 'mainlink3'), '5' => array('id' => 5, 'parentid' => 0, 'title' => 'Main Link 4', 'url' => 'mainlink4'), '6' => array('id' => 6, 'parentid' => 3, 'title' => 'Child Link 1', 'url' => 'child1'), '7' => array('id' => 7, 'parentid' => 4, 'title' => 'Child Link 2', 'url' => 'child2'), '8' => array('id' => 8, 'parentid' => 4, 'title' => 'Child Link 3, 'url' => 'child3'), ); # Creates social icons using FontAwesome social fonts # Modify the links to point to your user account for each social network # Add or delete networks as needed # Refer to FontAwesome documention for other social icons $socialIcons = array( 'Twitter' => array( 'link' => 'http://twitter.com', 'icon' => 'fa-twitter' ), 'Facebook' => array( 'link' => 'http://facebook.com', 'icon' => 'fa-facebook' ), 'LinkedIn' => array( 'link' => 'http://linkedin.com', 'icon' => 'fa-linkedin' ), 'YouTube' => array( 'link' => 'http://youtube.com', 'icon' => 'fa-youtube' ), 'Pinterest' => array( 'link' => 'http://pinterest.com', 'icon' => 'fa-pinterest' ), 'Instagram' => array( 'link' => 'http://instagram.com', 'icon' => 'fa-instagram' ), ); # This is safe to remove once everything is working properly $requiredFiles = array('index.php', 'header.php', 'footer.php', 'includes/config.php', 'js/phpwt.js', 'css/phpwt.css');

Sticky Side Column

If you're using our PHP Website Template, this is the optional side bar column you can add to some or all of your pages. It can be useful for adding advertisements such as Adsense ads to be displayed on multiple pages.
When you include the side column, your main content will automatically adjust its width to accommodate it.
The side bar is 'sticky'; it will scroll down and remain in view.
You can turn on/off the side bar column per page by defining the $showSide option located at the top of each file.