hazmj001
Member
Posted 2 years ago #
I have a site set up with 5 separate pages, with links to all across the top.
I've set it up so users see a static 'home' page when they visit the site, and the blog is on a separate page.
My problem is that there are two links to the 'home' page instead of one. I can't work out why this is. I haven't got two 'home' pages set up, just one, so why are there two links? Does anyone know how to fix this?
visionforadelaide.com
Thanks in advance
Matt
adamt07
Member
Posted 2 years ago #
what theme are you using?
hazmj001
Member
Posted 2 years ago #
hazmj001
Member
Posted 2 years ago #
All sorted now.
WordPress/viligance automatically creates a default page called 'home', that does not appear in the 'pages' section, so it seems mandatory that you have a page called 'home'.
adamt07
Member
Posted 2 years ago #
if you want to remove that automatic home page link you can look in the header.php for the line
<li class="page_item <?php if (is_front_page()) echo('current_page_item');?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
it's inside the "nav" div. Cut it out and try that, if that doesn't do it just paste it back, but I'm pretty sure that should eliminate that first home page link.