Heropass
Member
Posted 1 year ago #
I didn't want my posts page to be seen as the home page on my site (see: ( ), so I made my front page a static one. The problem is that now there are two tabs at the top which go two the same home page. So I have two tabas that say "home". I was wondering if there is a way around this issue, or do I have to just let it be.
Thanks in advance
The fix depends on your theme and how the menu is constructed.
A Google search for 'wordpress two home tabs' will give a lot of results for this problem. One of the might fit your case.
Heropass
Member
Posted 1 year ago #
I have a blackon theme and I haven't found any which helps me. The code is very different then the ones which come up in google search.
Around line 147 in functions.php, change this:
function toplinks(){ ?>
<div id="topLinks">
<ul>
<li><a href="<?php bloginfo('url'); ?>/">home</a></li>
<?php wp_list_pages('title_li=') ?>
</ul>
</div>
<?php }
to this:
function toplinks(){ ?>
<div id="topLinks">
<ul>
<?php wp_list_pages('title_li=') ?>
</ul>
</div>
<?php }
by removing this line:
<li><a href="<?php bloginfo('url'); ?>/">home</a></li>
Heropass
Member
Posted 1 year ago #
vtxyzzy, that did the trick. Crap, I didn't search into functions.php good enough to see that line... thanks a bunch!
And thanks to everyone that spent anytime helping me to solve this problem.