WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How Do I Change Home URI in 3.0? (5 posts)

  1. dmahler
    Member
    Posted 3 years ago #

    I'm weak in PHP and I believe I found the section I need to change in Function.php of my template design. But I can't seem to get the code to work.

    I need my "HOME" button to go to the main website, not the blog.

    Is this where I change it?

    function art_menu_items()
    {
    	global $artThemeSettings;
    	if (true === $artThemeSettings['menu.showHome'] && 'page' != get_option('show_on_front'))
    		echo '
    <li><a' . (is_home() ? ' class="active"' : '') . ' href="' . get_option('home') .

    And if so, how do I insert the: http://mice.org
    into the section after the href=" ' . get)option('hone') .
    without getting a parsing error that I'm missing "," or ";"

    Right now the home link is linked to the blog itself "http://mice.org/blog" and visitors want to go back to the website home page from there.

    Any help would be greatly appreciated!

  2. dmahler
    Member
    Posted 3 years ago #

    So not a single person here knows how to put a permanent link into WP?

  3. dmahler
    Member
    Posted 3 years ago #

    Well, after not hearing from anyone, I actually solved the problem myself. So, I am posting it here to help someone else if they need it in the future.

    I just added my URL after the echo like this:

    echo '<li><a href="http://mice.org">'.$artThemeSettings['menu.topItemBegin']</a></li>';

    And that's in the Functions.php editor.

    This changed my home page back to the website and not the blog home.

    I hope this helps someone else who might be struggling.

    Debbie`

  4. dmahler
    Member
    Posted 3 years ago #

    Okay, I just upgraded my theme to be compatible with 3.0.

    Can someone please tell me where in the functions (or other location) I can put the URL for my home menu to my website and not the blog home?

    Where's the code located?

    Debbie

  5. dmahler
    Member
    Posted 3 years ago #

    Never mind! Figured it out myself again!

    Debbie

Topic Closed

This topic has been closed to new replies.

About this Topic