Forums

[resolved] How to I edit the navigation tool? (4 posts)

  1. LorieHartt
    Member
    Posted 6 years ago #

    For some reason the Back to Home option on my navigation bar is linking to a directory on my server, rather than the home page of my blog as it should. I need to know which file, and how, to edit to fix that. Thank you in advance for your assistance.

    Lorie Hartt

  2. MAK
    Member
    Posted 6 years ago #

    Hi Lorie,

    If the "back to home" link you refer to is located in your sidebar, search your theme folder for a sidebar.php file and look for that link within the code.

    It should resemble this and if it doesn't perhaps try it out and see if it helps:

    <a href="<?php echo get_settings('home'); ?>/">Back to Homepage</a>

    Also add a title attribute if you want to make it legal xhtml such as:

    <a href="<?php echo get_settings('home'); ?>/" title="Return to Homepage">Back to Homepage</a>

    If you don't have a sidebar.php or if maybe it is part of your header, try looking in your theme's header.php file as well. Some people place the top nav links in the header file.

    Best wishes.

  3. LorieHartt
    Member
    Posted 6 years ago #

    Hi MAK,

    Many thanks, that was what I needed.

    Sadly enough I've been having so many difficulties today I think I was looking for a more complicated answer. :S

    Ah well. Such is life when you're dreaming code. :)

  4. MAK
    Member
    Posted 6 years ago #

    You're welcome Lorie and I hope your day eases up for you.

    PS: Don't forget to change this to RESOLVED at the top so the WordPress police don't get ya :-)

    /ciao

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags