Forums

Static home page on SimpleX theme (5 posts)

  1. copperblade
    Member
    Posted 2 years ago #

    Hi, I'm trying to use a static front page on this theme, but I end up with two "Home" menu items. It's kind of annoying. I know I can "fix" it by deleting some code in the theme or by using wp_page_menu and adjusting CSS, but I'd rather not start making my own code modifications. Is there some trick to getting the extra "Home" link to not display if I'm using a static home page?

  2. Kim09
    Member
    Posted 2 years ago #

    Hey copperblade

    Had that problem in my blog too, but i removed this code: <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
    and the sticky home was gone.
    it's usually in nav div.

  3. MindBlender 3D
    Member
    Posted 2 years ago #

    Not that I know of.

    There may be a way to change up the index.php file, so that the root page itself is turned into a static page. Then, you could make a custom page template for a page named "Blog". That page would call the WordPress Loop, and display all of your posts.

    The only problem with this option? It requires even more of a code modification to your theme than the original solution :-)

    So, unless you want to make some more custom templates, I would suggest following the other hack.

    Either way, I hope it works for you.
    --MindBlender 3D

    P.S. If you wanted to, you could probably get on the WP-Pro mailing list, and ask for someone to mod your theme for you there.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    the easiest way to stop a function in your theme...but leave the code in case you change your mind later is to comment it out

    for instance...to edit out a home page link:
    <!-- <a href="<?php bloginfo('url'); ?>">Home</a></li> -->

  5. copperblade
    Member
    Posted 2 years ago #

    Ok thanks guys. I'll probably end up just taking out that extra Home list item somehow.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags