WordPress.org

Ready to get started?Download WordPress

Forums

Trouble with alphabetical order on sidebar menu. (19 posts)

  1. dawg
    Member
    Posted 9 years ago #

    I added the same both sets of links to the sidebar to demonstrate the underline, when they are in alphabetical order no underline but order of first link posted they are underlined.

    below are two separate calls for the links, the first puts them in alphabetical order but the second does not but has an underline which I can not get rid of.

    <?php get_links_list(); ?>
    <?php get_links(1, '<br>', '</br>', '', TRUE, 'id', FALSE); ?>

    http://cafe789.com/kyles_eyes make sure to select alamo theme.

  2. oriecat
    Member
    Posted 9 years ago #

    Well the first set is pulled as an actual list, so it is styled using the appropriate li tags. The second set is not pulled as a list, it is just separate anchor tags, so they are underlined because your anchor tag doesn't say not to. If you add text-decoration: none; it would go away.

  3. oriecat
    Member
    Posted 9 years ago #

    Easiest thing would probably be to use <?php get_links_list('id'); ?> then it should sort the list by the ID#

  4. dawg
    Member
    Posted 9 years ago #

    Thanks oriecat, I actually did try that <?php get_links_list('id'); ?> but it left them alphabetical, where should I add the text-decoration: none as I was all thru my css this morning and added that several places to no avail.

    As you can see I changed it to that but the links are still abc etc

  5. oriecat
    Member
    Posted 9 years ago #

    It's just your plain old a { section. It will also affect other links.

    You could maybe put the call in a new div and style that instead if you don't want the underline to go away other places.

  6. oriecat
    Member
    Posted 9 years ago #

    or try wrapping the call as a list or something, then it should use the ul or li style?

  7. dawg
    Member
    Posted 9 years ago #

    I have text-decoration: none; like this (a:hover {
    color: #9D5C00;
    text-decoration: none;})
    above but it does not do the trick, there is only one instance of underline in my css and I also checked border-bottom and that is not it. I can go to where the links get their text transform and set it to blink and they flash, it is set to lowercase now but I can take that out and set it to text-decoration: none; but this too does not work, I spent a couple of hours with the css but I think it is in the php call.

  8. dawg
    Member
    Posted 9 years ago #

    I wrapped them both but nothing changed.

  9. Root
    Member
    Posted 9 years ago #

    dawg there wont be instances in the CSS - it is default behaviour. Just put
    ul a {text-decoration: none}
    in your CSS. Oriecat is right.

  10. oriecat
    Member
    Posted 9 years ago #

    It's not the hover, it's the plain one, just a.

    Ok, you have them in a ul now, so add this:

    ul a{
    text-decoration: none;
    }

  11. Root
    Member
    Posted 9 years ago #

    darn

  12. oriecat
    Member
    Posted 9 years ago #

    :) 7 seconds!

  13. dawg
    Member
    Posted 9 years ago #

    Thanks Root and oriecat, that did it, my ac/air has been out all day, my mind can not function well when I am hot. I was changing everything everywhere, changing but did not add anything. Thanks again.

  14. oriecat
    Member
    Posted 9 years ago #

    NP :) Hope you cool off!

  15. vkaryl
    Member
    Posted 9 years ago #

    "ac/air"? Whereinthehell do you LIVE, dawg? It's 31 and snowing here, I don't care that spring happened 4 days ago.... [of course, we don't have ac in the summer either....]

  16. dawg
    Member
    Posted 9 years ago #

    It is 88 right now inside my office, earlier it was 92. Ten Miles from Mexico, deep south Texas BTW vkaryl I like your new site, but I miss the themes

  17. vkaryl
    Member
    Posted 9 years ago #

    Gettin' there - just haven't got things all back together after the foobar the other day. Readding things one at a time, and just restarting on themes alphabetically! Had to finish fixing the damn Access database today, so I'm behind.... *sigh* - but I THINK it's fixed finally.... I hope.... knock on wood....

    [Well, if you WILL live in Texas! We lived there briefly a couple of times: 1957 - the big oil fire in the harbor in Texas City (I don't think it's even called that now - Bay City or something?) being the most memorable time period....]

  18. dawg
    Member
    Posted 9 years ago #

    Actually Texas City just had a major warehouse/plant destruction where people died

    http://www.alertnet.org/thenews/newsdesk/N23535794.htm

  19. vkaryl
    Member
    Posted 9 years ago #

    Whoa. Nasty....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.