Bummer! You have been redirected as the page you requested could not be found.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Adding shirts.php in the project

When i add shirts.php in the li href in the header.php it donesn't do anything when i click on the shirts link in the localhost directory

3 Answers

Jacob Herper
Jacob Herper
94,150 Points

Can you please provide your code? I am not sure what you mean by "li href", but the proper line of code should be:

            <li><a href="shirts.php">Shirts</a></li>

:<html> <head> <title><?php echo ('Shirts 4 Mike'); ?></title> <link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oswald:400,700" type="text/css"> <link rel="shortcut icon" href="favicon.ico"> </head> <body>

<div class="header">

    <div class="wrapper">

        <h1 class="branding-title"><a href="./">Shirts 4 Mike</a></h1>

        <ul class="nav">
            <li class="shirts"><a href="shirts.php">Shirts</a></li>
            <li class="contact"><a href="contact.php">Contact</a></li>
            <li class="cart"><a href="#">Shopping Cart</a></li>
        </ul>

    </div>

</div>

<div id="content">

this is the header.php and this is shirts.php :

<?php include('inc/header.php'); ?>

<div class="section page">

    <h1>Mike's Full Catalog Of Shirts</h1>

</div>

<?php include('inc/footer.php'); ?>

When i click on the shirts link on the site it doesn't do anything.When i click on contacts it works fine.

The code seems correct. Check using the Developer Tools on your browser what you see in shirts link href attribute