coxtree
Member
Posted 7 years ago #
I've spent several hours on this, but am stuck. I'm trying to complete a set of links in my navigation bar, which is located in my header.php file. I'm using the Spirit 3-column theme by BB IVerson. I create new links like this (sample link supplied with theme):
/links/" title="Visit my favorite websites">Links<span class="divider"> : </span>
One link I've created for a page I've created looks like this:
/gallery/" title="View our photo gallery">Photo Gallery<span class="divider"> : </span>
When I refresh the header.php file on my site and check the link, I get an Error 404 - Page not Found. I've managed to create two links to pages, that work (the Links page and an Audio page), but every other link I've tried to create doesn't work. What gives?
try this:
<a href="<?php echo get_settings('siteurl'); ?>/links/" title="Visit My Favorite Websites">Links</a></li>
Note: remove the <span> tags as well... no need for them.
coxtree
Member
Posted 7 years ago #
I copied that directly and got Error 404 - Not Found.
okay well you have to forgive the fact that I don't have a link to your site, and therefore can't see the exact address of your 'Links' page.
please post that and maybe i can help you further
coxtree
Member
Posted 7 years ago #
<a href="http://kncmusic.com/coxtree/wordpress/links/" title="Visit My Favorite Websites">Links</a></li>
Use that one. :)
coxtree
Member
Posted 7 years ago #
That doesn't work either! Maybe the problem lies in the type of page I'm using: I'm using the pages you create in WP Dashboard -> PageManagement. Should I be using a links.php file to link to?
lohnunternehmer
Member
Posted 7 years ago #
I think the problem is that there's no directory called "links" on your server.
Try to create a regular php (or shtml in your case?) file.
coxtree
Member
Posted 7 years ago #
There is a links.php file under kncmusic.com/coxtree/wordpress/wp-content/themes/Spirit/links/ Should all the files under the theme directory be moved to the WordPress root directory?
nooo don't move them!
hang on a bit and let me do some research...
update:
okay, this is where your wordpress site is live: http://kncmusic.com/coxtree/wordpress/links/ and where the links page should be.
go into your manage - pages and hover over the "view" link for your links page, and see that it's the same.
what you essentially want to link to is the page that shows up when you click that "view" button.
coxtree
Member
Posted 7 years ago #