• Resolved myidea1

    (@myidea1)


    I am using Cutline 1.4 and self-hosted. When I hover over a navigation link in the nav bar, a text pops up with the same name as the nav link. I would like to take that away. I know how to add or remove an alt text in a normal nav link, but I can’t seem to find where this is controlled. Does anyone have an idea?

    Thanks for any responses.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Probabbly your header.php. Find your navigation div (it may be called something else) and then find where it says something like wp_list_pages(); and then look for alt in there. Sorry to be so vague, hope that helps.

    Thread Starter myidea1

    (@myidea1)

    Thanks micahcooksey for replying. I had already done a search in the header.php, but decided to look again on your recommendation. The only “Alt” in there is for my header photo’s (blog title), which are several. The word “Alternative” is in there a couple of times, but they make no reference to a name. The code for the list_pages is:

    <?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?>

    The only thing I see is the “&title_li”. Not being a php guru, I’m not sure what that does.

    Any other ideas will be greatly appreciated.

    You could hand-code your menu, so rather than the list pages funtion you would have something like:

    <ul id="nav">
    <li>
    <a>href="<?php bloginfo('url'); ?>" alt="Home Page">front page</a>
    </li>
    <li>
    <a>href="<?php bloginfo('url'); ?>/archives/" alt="Archives Page">archives</a>
    </li>
    <li>
    <a>href="<?php bloginfo('url'); ?>/about/">about</a>
    </li>
    <li class="rss"><a>">RSS</a>

    Obviously, you would want to change the if (is_genericname() || is_page('archives')), the <?php bloginfo('url'); ?>/genericname/, and the alt and the link text to whatever your page is called. As for the “&title_li”, it makes each page title an “li”, or “list item”.

    Hope that helps!

    Thread Starter myidea1

    (@myidea1)

    Sorry for being so late in responding, but had other priorities come up and had to put off the testing.

    I tried the hand coding as you suggested, but I’m afraid it didn’t work out. The header.php didn’t like and it scrambled the blog. I tried a couple of different versions, with the same result.

    Strangely, the home page comes stock in the header.php. And although there’s no control there for the alt text, it doesn’t have the balloon pop up. I have used the pages template for the other navs. What I have noticed is that all “pages” have the pop up too, but I can’t locate where in the pages template that is controlled.

    If I can’t find it soon I will go to the Cutline forums and see if they know anything. In the meantime, if you think of anything else it will be greatly appreciated.

    I would recommend going over the code throughly to make sure you closed all your tags and things like that. It’s most likely just a typo. Any good theme (Cutline included) should let your hand code your nav.

    You’re going to hat me for this… I gave you incorrect code!! Instead of

    <ul id="nav">
    <li>
    <a>href="<?php bloginfo('url'); ?>" alt="Home Page">front page</a>
    </li>
    <li>
    <a>href="<?php bloginfo('url'); ?>/archives/" alt="Archives Page">archives</a>
    </li>
    <li>
    <a>/about/">about</a>
    </li>

    , you should have

    <ul id="nav">
    <li>
    <a href="<?php bloginfo('url'); ?>" alt="Home Page">front page</a>
    </li>
    <li>
    <a href="<?php bloginfo('url'); ?>/archives/" alt="Archives Page">archives</a>
    </li>
    <li>
    <a href="<?php bloginfo('url'); ?>/about/">about</a>
    </li>

    Sorry for the trouble that caused! BBpress muddled it.

    Thread Starter myidea1

    (@myidea1)

    micahcooksey, no apology necessary. I should have seen the problem myself, but sometimes we just get brain locked. It works fine now. No more attributes.

    alchymyth, thanks for the links. Man, I tried to google this thing up, but evidently I wasn’t asking the right question. What’s the old saying – crap in, crap out.

    I have a mirror of my blog on a local host and that is where I do my trials and test before I modify my online blog. I’m going to give your advice a try too, if for no other reason than to expand my own knowledge. I love learning. At nearly 67 years of age, the learning never stops. Those two links are keepers.

    Thanks to both of you folks for the help. I’ve said it before and I say it again — this forum is great. I’ll tag this topic as solved.

    Hi,

    I would also like to remove the alt text from my navigation bar. I am not too familiar with coding but I have tried to do what was mentioned above. However, I’ve had no luck. Here is my site: https://www.ephraimsplace.com

    Any help would be great!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Navigation Bar Alt Text’ is closed to new replies.