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

WordPress From Bootstrap to WordPress Setup a Bootstrap Theme Creating Bootstrap Navigation in WordPress

Navigation 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

Exactly what kinds of errors are you getting? Is the page loading, but completely blank? Or are you getting 404s?

Hi 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

What templates do you have in your theme folder?

I have twentyfourteen, twentythriteen and twentytwelve

9 Answers

Luke Travis
Luke Travis
2,887 Points

hmmm. What a fun little enigma. A few questions to start...

  1. 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?

  2. Do you have any redirect plugins installed?

  3. Do links to media resources also lead back to the homepage?

Hi 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.

Hi 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
Ashley Crossland
10,868 Points

I'm having the same problem, can you remember exactly how you fixed it?

Thanks

Ashley Crossland
Ashley Crossland
10,868 Points

I 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
Phil Purves
9,827 Points

Same 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
Ashley Crossland
10,868 Points

Hi 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
Phil Purves
9,827 Points

Cheers Ashley - another clue indeed. Do you get the template choices under page attributes on the live site?

Hey 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
Ashley Crossland
10,868 Points

Hi 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
Kresimir Fijacko
6,025 Points

does anyone have a solution for this?

Phil Purves
Phil Purves
9,827 Points

My 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!