Hello,

I wonder about one thing: I am trying to create a uniform background for this all navigation links in this site: Infracom

I do not really create the site - since we no longer hire the one who create it and I have to maintain it.

index.php

<?php
require('wds.php');
include(INC_DIR . 'header.inc.php');
?>
<div class="container">
    <div id="header">
        <h1 id="book-of-love"><img src="<?php echo SITEURL; ?>images/infracom.png" /> <!--Indonusa Group<span> Portal</span> --></h1>
    </div>
    <ul id="love-story" class="menu-love-story">
        <?php
        $q = new wdsQuery("SELECT link_ID, link_title, link_description, link_class, link_url, link_color FROM " . $dbtable['links'] . " ORDER BY link_ID ASC");
        while ( $r = $q->fetchArray() ) {
        ?>
        <li data-makeItColorful="<?php echo $r['link_color']; ?>">
            <a href="<?php echo $r['link_url']; ?>">
                <h2 data-type="storyTitle" class="love-story"><?php echo $r['link_title']; ?></h2>
                <h3 data-type="storyDescription" class="love-story"><?php echo resNetral($r['link_description']); ?></h3>
                <span data-type="storyPicture" class="love-story icon-love-story <?php echo $r['link_class']; ?>"></span>
            </a>
        </li>
        <?php
        }
        ?>
    </ul>
    <?php include(INC_DIR . 'footer.inc.php'); ?>
</div>
</body>
</html>

company.php

<?php
require('wds.php');
include(INC_DIR . 'header.inc.php');
?>

<div class="container">
    <div id="header">
        <h1 id="book-of-love"><img src="<?php echo SITEURL; ?>images/infracom.png" /> <!--Indonusa Group<span> Portal</span> --></h1>
    </div>

    <div class="infra-article">
        <?php
        if ( isset($_GET['pageSlug']) && !empty($_GET['pageSlug']) ) {
            $q = new wdsQuery("SELECT pages_ID, pages_title, pages_description, pages_content, pages_slug FROM " . $dbtable['pages'] . " WHERE pages_slug = '" . slugs($_GET['pageSlug']) . "'");
            if ( $q->numRows() == 1 ) {
                $r = $q->fetchArray();
            ?>
            <h1 class="heading"><?php echo $r['pages_title']; ?></h1>
            <?php echo $r['pages_content']; ?>
            <?php
            }
            else {
                generate404();
            }
            ?>
        <?php
        }
        else {
            generate404();
        }
        ?>
    </div>


    <?php include(INC_DIR . 'footer.inc.php'); ?>
</div>
</body>
</html>

I thought since both of them have:

<?php
require('wds.php');
include(INC_DIR . 'header.inc.php');
?>

all the link sites suppose to have the same background and style but this is not the case.

How to make all of them have the same background?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.