php includes


Author Message
Dave Porter

Posted: 11/11/2009
Quote message 

Hi Nicole,

Would need to view the actual code to see exactly what you have done !

cheers Dave
 
Garry

Posted: 11/11/2009
Quote message 

You should provide some more details about what are you trying to include.
 
nicole

Posted: 11/12/2009
Quote message 

Seeing your questions, I understand it's supposed to work.
It's still a good news.

Do you need more to understand?
 
Nicole

Posted: 11/13/2009
Quote message 

I made a try with the first template proposed by artister 2.3, standard edition, paid, html modele.
I made no change, just exported : bar is touching header.
I placed the navigation in include. There is 5 mm of space between header and navigation.

Where is the problem?
 
Garry

Posted: 11/13/2009
Quote message 

I think you are trying to add a gap between header and navigation menu, if it is, you can do it as following:

div.art-Header {
height:225px;
margin:0 auto;
position:relative;
width:874px;
z-index:0;
}

---------------------------------------------
Add margin bottom as following:
----------------------------------------------

div.art-Header {
height:225px;
margin:0 auto 9px;
position:relative;
width:874px;
z-index:0;
}
 
Nicole

Posted: 11/14/2009
Quote message 

No I'm not trying to add a gap.
I'm just telling that the gap appears when the nav code is in include.
I would like no gap, same as original theming, but it seems impossible when using include.
 
Garry

Posted: 11/14/2009
Quote message 

Someone will definitely help you with some css edits if you post your website URL here.
 
Nicole

Posted: 11/16/2009
Quote message 

Hi Jane,
the only difference is a small square before <div class="art-nav">
at include place. I checked every lines it's same.
I work with IE 7
I think I'll send something to support (I did not test yet if we can join file when working with support).

 
sanara

Posted: 4/29/2013
Quote message 

Hi

Including files can be very useful if all the pages (or many of them) on your website consist of the same parts such as the same header or footer.

example: -

<html>
<head>
<title>Include file</title>
</head>
<body>
<?php include ("header.php"); ?>
<h2>Welcome to our site!</h2>
</body>

header.php

<a href="/">Home</a> | <a href="about.php">About Us</a> | <a href="faq.php">FAQ | <a href="contact.php">Contact Us</a>
</html>