Dead Contact Link
-
I’m building a site using wordpress as my cms, and have everything working the way I want it to structurally. The only problem is that when you click on my contact button I get the error “Fatal error: Call to undefined function get_header() in /home/content/41/7378741/html/scottsword/contact/index.php on line 1”
All my anchor tags are the same for my sprite menu they are all <!–a href=”<?php bloginfo(‘url’)?>/contact/–> the same for blog, portfolio, etc (minus the !–, I just threw that in so wp didn’t compress my code when I tried to show you). All the links work except for contact. Perhaps wordpress doesn’t recognize a php call named contact? Perhaps I’m looking over something very stupid.
Here is a link to my site so you can see what I’m talking about http://www.scottsword.com
Any help would be greatly appreciated.
-Scott
-
so wp didn’t compress my code when I tried to show you
please use the ‘code’ button of this editor.
Thank you, but neither one of those links helped because I have not made any changes to my index.php files. I used the snippets that wammi or whatever suggested and have the same problem. All of the links in my navigation work perfectly minus that one contact link. If the index file was some how compromised then all of them would be giving me an error.
Your contact page will be using page.php (assuming it is set to use the default Page template) – not index.php.
All my pages are set up individually, page-about.php, page-portfolio.php, and page-contact.php All work except for the contact page.
Never mind, I fixed it myself. I just change the permalink from …/contact/ to /contactme/ and it works fine.
The topic ‘Dead Contact Link’ is closed to new replies.