33
138
© Ecommerce Templates
you want to maintain the look, you may need to manually add the class to the
<p> tag when adding a new paragraph. Speaking of <p> tags, be careful as
sometimes Frontpage will add them to your code, both on the include page
and the main page which contains the include - this may cause some extra
spacing to occur and will mess up your design, particularly in Netscape 7. To
delete them open the page in HTML view, delete and save, making sure you
have the "Preserve existing HTML" box checked in Page Options. There is
further help on using CSS in this chapter.
NB. Only code that is between the opening and closing <BODY> tags will be
read in include files, so if you have to put some script into the <HEAD>
section, it will have to be moved to the <BODY> section.
Modifying an include page (PHP Version)
There are a couple of issues with the Frontpage version when using the PHP
templates. Frontpage extensions do not work with pages with the .php
extension, so this means that FrontPage Includes and FrontPage Navigation
do not work. We have found a neat way around these issues, but there are a
couple of things to bear in mind.
First, for include pages, we have just used PHP includes. It's already set up
for you, and you will find the included pages in the includes folder. Unlike
FrontPage includes however, all links will be relative to the file that is doing
the including. So, for this reason we recommend you use links relative to the
site root if you want to use the same include files in folders and sub folders.
Examples of different ways to link pages are . . .
This is a relative link: mypage.php
This is a link relative to the site root: /mypage.php
This is an absolute link: http://www.mysite.com/mypage.php
The include page will not show up when you preview in a browser, so you'll
need to upload the site to your server to view your modifications. There is a
utility that will allow you to view your changes in Frontpage and they have a
30 day free trial available.
You can also work "live" on the server: