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 trialChristian Brown
902 PointsNavigation links not working
Hi, I've followed this tutorial to the letter and my page links (other than the home page) go to blank pages. I've created the pages in the normal way and added them to the menu but although they show as expected on the front end, they do not resolve. Any ideas? Thanks
Christian Brown
902 PointsHi Ryan, thanks for the response. I started again with a completely fresh install of wordpress and used the downloaded files as a theme and this time the navigation links only reload the home page even though when I hover over them I can see the url wordpress/?page_id=12
I've tried changing the permalinks but get the same result.
Thanks
Ryan Duchene
Courses Plus Student 46,022 PointsWhat templates do you have in your theme folder?
Christian Brown
902 PointsI have twentyfourteen, twentythriteen and twentytwelve
9 Answers
Luke Travis
2,887 Pointshmmm. What a fun little enigma. A few questions to start...
Does all links on every page point to the homepage, or is it that the links on each page are just refreshing the current page?
Do you have any redirect plugins installed?
Do links to media resources also lead back to the homepage?
Christian Brown
902 PointsHi Luke,
I don't have any redirect plugins installed.
I started again and followed everything in the videos to the letter. Now anything other than the home page results in a 404 Not found error. I've deleted all pages and started again but still get error pages when creating new pages. Even when using the view page button on a newly created page it still shows the 404 not found error. The Reading settings have a static front page selected with front page set as home and posts page set as Blog. I'm using Wordpress 4.0. I've been using the download files to replace everything in my new theme folder and while everything else is OK it seems that no matter what I do I can't add a new page in wordpress without it showing a 404 not found error page.
Christian Brown
902 PointsHi Luke,
Sorry don't waste your time. I've changed my theme and permalink settings a couple of times and it seems to have cleared the problem now.
Thanks anyway
Ashley Crossland
10,868 PointsI'm having the same problem, can you remember exactly how you fixed it?
Thanks
Ashley Crossland
10,868 PointsI have narrowed it down a little:
If I use any permalink setting other than 'default' I receive the 404 error message when visiting any page other than home, 'The requested URL /my-site-url-here/index.php was not found on this server.'
I would like to use postname as my permalink settings ideally.
Phil Purves
9,827 PointsSame Problem
All my Nav links do is lead you to the Jumbotron example layout. I've checked all the pages and their permalinks and deleted all the initial (example) pages but still get same result.
I've noted that under page attributes (wp-admin) that there is no way - at this stage - of setting templates .... possibly connected?
... and I'd started from a completely new (blank) setup btw.
Ashley Crossland
10,868 PointsHi Philip,
I found the problem continued to happen when working from a local server, but when the site was uploaded to a live server all the permalink settings worked fine.
That suites me ok, as it was only really important to have it working on the live site, I could live with using default permalink settings when working locally!
Phil Purves
9,827 PointsCheers Ashley - another clue indeed. Do you get the template choices under page attributes on the live site?
Nijad Kifayeh
6,092 PointsHey Ashley.
I'm having the same problem as you....default permalinks work fine, but any other options result in a 404.
Did you ever figure out a way to get it to work in a local development environment?
I'm sure we're not the only 2 developing locally, so I wonder why more ppl aren't having this problem....might be something we did wrong?
Ashley Crossland
10,868 PointsHi Nijad,
Sorry I still don't know the solution. I just keep the permalink as default when developing locally, and try not to let it bother me as it does't have a huge impact on the work flow. If you want to link to specific pages you can link to the page ID instead, so when the hyperlinks change to how you want them on a live server, they will still go to the same page - thats covered somewhere in a video I know.
Ash
Kresimir Fijacko
6,025 Pointsdoes anyone have a solution for this?
Phil Purves
9,827 PointsMy mistake - sorry - I've just realised Zac's work in progress had the same behaviour an mine at this point. I guess he's going to get around to the solution before long ... I was just getting impatient!
Ryan Duchene
Courses Plus Student 46,022 PointsRyan Duchene
Courses Plus Student 46,022 PointsExactly what kinds of errors are you getting? Is the page loading, but completely blank? Or are you getting 404s?