Thanks to you all…it is the same issue i am having the header appears unstyled and no images appears. I am
putting the full site structure and the header content… i am working on local server before going live…
in the main index.php everything works fine because the link is relative: so the
[php]include_once ‘includes/header.inc.php’; [/php]
but when i want to include the header.inc.php into the index.php located in the subfolder ManClothes, Things
go wrong the header appears into simple html totally unstyle and the logo images do not appear as well…
So , that is an absolute path situation so i use this technique in index.php located in the subfolder ManClothes like this:
[php]ManClothes subfolder:index.php
<?php
define('ROOT', $_SERVER['DOCUMENT_ROOT']);
if (!include_once(ROOT."kbashopping/includes/nav.inc.php")) {
echo "Fail to open";
}
?>
[/php]
only the raw html appears and totally unstyled.
This is the full site structure
[php]site foldername ->kbaboutik
inside kbaboutik folder
main : index.php
And there are these subfolder
images
-all site images and logo
css
-main.css
includes
-header.inc.php
-footer.inc.php
ManClothes
-index.php
[/php]
This is how the header.inc.php looks like:
[php]
Achat en ligne | Achat de chaussures, chaussures grandes tailles de qualité à pétit prix en Côte d'Ivoire | kbaboutik.com
.topNav i a
{
color:#f09918;
}
.fa
{
position: absolute;
display: block;
}
</head>
<!--debut TopHeaderBar-->
<div class="TopHeaderBar">
<a href="#" class="logo imgBorder">
<img src="images/kbaLogo1.png" alt="Kbashop_logo"/>
</a>
<div class="topHeaderIcons imgBorder">
<ul><li><img src="images/kba_payment1.png" width="130" height="55" alt="payment_icon" /></li><li><img src="images/kba_livre.png" alt="livraison_icon" width="130" height="55" /></li><li><img src="images/contact_kba.png" alt="kba_contact" width="130" height="55" /></li>
</ul></div>
<div id="search">
<div class="searchBtn">
</div><!--end#TopHeaderBar -->
</header> <!--end#headerwrapper--> [/php]
I am really feeling desperate with this situation. I have tried to explain the best i could…hope you guys will see the issue and help me better
Thanks