Can I Add ‘Home’ To My Sandbox Navigation Bar?

  • Author
    Posts
  • #275766

    sundrop74
    Member

    I’m using Sandbox with custom css. I have a menu/navigation bar that goes across the top of my blog pages. Some of the themes on WP have “Home” or “Blog” displayed on the menu bar so that users can easily get back to the main page. I know that users can click the title of my blog to achieve the same result, but some users are unaware of that feature. I am wondering if there is a way to add a Home/Blog link to the navigation bar?

    #275940

    Yes: you can create a (blank) page and put the link to your blog as its title. Only note that the trick won’t work unless the title of the link includes a space (“Home” or “Homepage” won’t do but “Home ” or “Home Page” will).

    #275945

    sundrop74
    Member

    I guess I don’t understand the directions. If I create a page with my blog address as it’s title, won’t it show up on the menu as “blogtitle.wordpress.com”?

    #275953

    rosclarke
    Member

    No, what he means is you put an html link:

    <a href="YOUR BLOG URL">Home</a>

    as the title to the page.

    #275966

    raincoaster
    Member

    I think he means you have to put it as:
    <a href="YOUR BLOG URL">Home </a>
    with the extra space

    #275970

    rosclarke
    Member

    What difference does the space make, raincoaster?

    #275971

    raincoaster
    Member

    I have absolutely no idea. Most of my forum expertise comes from interpreting the posts of other, more knowledgble people. He did say it needed a space.

    #275972

    raincoaster
    Member

    See, I don’t even know how to spell “knowledgble”.

    #275975

    rosclarke
    Member

    I thought you spelled “nolegebull” perfectly. ;)

    #275976

    raincoaster
    Member

    soopar!

    #275980

    @nrepair: I said LINK, not address.

    @rosclarke & raincoaster: Your dialog sounds as if you’re talking about an obscure passage of some church Father!

    So here the story of this ancient scripture… The trick seems to be my invention. When I first tried it, I happened to use two words and it worked (strangely, because generally html tags are stripped away in titles, as raincoaster who is a lot more how-you-spell-it than me well knows). The first time I suggested it to a member, she complained it didn’t work, and initially I thought she couldn’t understand my instructions, as I hadn’t suspected that strange limitation yet. Thanks to her case I found that if you put a single word, the link doesn’t work (can’t explain why): clicking the tab just opens the page you’ve created. So my suggestion used to be that the name must be at least two words, until another member (don’t remember who) had the clever idea of trying single word plus space, which also proved to work.

    Note: in some themes such page tabs don’t show up correctly.

    #275987

    sundrop74
    Member

    Okay. I’ve got the link to display and work correctly. However, for some reason it doesn’t look like the rest of my links. It’s set much lower on the navigation bar. Any ideas why?

    #275989

    sundrop74
    Member

    The indent is being caused by the space. It doesn’t matter if it’s at the beginning or end of the word. Perhaps this is related to my css?

    #275997

    vivianpaige
    Member

    I played with the exact same thing in the version of Sandbox that you are using and ran into the same problem. I gave up.

    There is an alternative, though. Using a combination of a text widget and your CSS, you can put a home link pretty much anywhere on the page.

    First, just put the link in a text widget. Then locate the widget ID and put this in your CSS:

    #text-widgetID {
    position:absolute;
    top:-15px;
    left:560px;
    width:380px;
    }

    You are going to have to play with the top/left positions. And you are probably going to want to change the look of the text widget (like the backqround and text color)

    For example, this moves your archives widget up to the top next to the find button:

    #archives.widget {
    position:absolute;
    top:-15px;
    left:560px;
    width:380px;
    }

    HTH

    #276000

    sundrop74
    Member

    @ vivianpage: I see that you are now using the older version of Sandbox and have the Home link in your nav bar. Does the older version of SB support that or did you have to use the text widget like you described?

    I followed your directions and was able to do it, but it’s just too much trouble. The font and font color have to be changed, and the other links in the menu would have to be shoved over to make room for it. It would be nice if “Home” was included by default and those who didn’t want it could simply apply a display:none to their css.

    #276007

    vivianpaige
    Member

    Actually, I screwed up when I coded my blog: I used the older version of Sandbox instead of the newer one. I’ve been working on getting my CSS done in the newer version (particularly because the menu option is there) but I’ve just not had time to complete it. In the meantime, what you see as the nav bar is actually the pages widget, which I have repositioned to the nav bar location (with an awful lot of help from our good friend, devblog). I have the home page as an empty page, like you started to do.

    If you place the text widget with the home link in it on the RIGHT side of the menu bar, you won’t have to move the other menu items over.

    #276008

    vivianpaige
    Member

    By the way, in the older version of Sandbox (not sure if it is in the newer version or other themes), there is a Home link widget, making the use of a text widget unnecessary. You can position that instead of the text widget.

    #276013

    sundrop74
    Member

    Wow! Repositioning the pages widget was brilliant. I might try that route.

    Thanks so much for your help, Vivian!

    #276031

    vivianpaige
    Member

    Glad to help! Your old theme gave me a whole lot of pointers when I was working on my coding, so at least I get to repay the favor :)

    #276052

    sundrop74
    Member

    That’s funny, because your current theme inspired me to go with two columns on the right side. I guess we both have good taste. :D

The topic ‘Can I Add ‘Home’ To My Sandbox Navigation Bar?’ is closed to new replies.