Linking to Child Theme PHP Files

I have an existing website with html, css, js, and image files that I am trying to convert over to wordpress.

I installed a clean local install using mamp on my hard drive and created a new child theme folder that references the twenty eleven theme. My style.css, header.php, footer.php, and index.php files are customized. When I load the main page in my browser it loads exactly as it should.

Read More

Now my problem is that I am trying to create the other content pages for the website…about, services, etc.. I created an about.php file and included the header.php and footer.php as I did in the index.php. I also put in the html as well. When I try to link to this page or visit it in the browser I simply get a page not found error. This is how I am referencing my links in the menu of the header.php file…

<a href="<?php bloginfo('stylesheet_directory') ?>/about.php" title="About">about</a>

Am I linking incorrectly? Am I doing the entire process incorrectly? Really confused about how to link the remainder of those content pages…I have all of the html and css ready to go just need to know this.

Help would be greatly appreciated thanks in advanced.

Related posts

Leave a Reply

2 comments

  1. Theme/Parent Theme/Child Theme usage is irrelevant here. Content is not added via Theme template file, no matter what Theme you use. Go to Dashboard -> Pages, and add new static Pages for each of your site’s pages. WordPress will generate them, and the Theme will display them.

    Edit

    ok so I figured out that I need to add a new page.php into my theme folder so that it will overwrite the original display correct? What I can’t quite figure out is how to generalize the page.php so that it will display the content for each page.

    It sounds to me like you need to do some Codex research, starting with Theme Development, and then Stepping Into Templates.

    The content of each static Page – as with the content of each blog post, or any other post type – is output in template files by the Loop, but without the fundamental understanding of how WordPress Themes work (see Codex links above), it doesn’t make much sense to get into further details at this point.