WordPress.org

Ready to get started?Download WordPress

Forums

wp_get_links won't display inline after 2.1 upgrade (9 posts)

  1. idahofallzcom
    Member
    Posted 7 years ago #

    At http://idahofallz.com the footer displays one link category. Before the 2.1 upgrade, they displayed in a big paragraph (using display: inline;)

    Now, after the 2.1 upgrade, they display in one column. They still respect the line-height: 200% so it's frustrating why they don't respect the inline.

    I've tried adding the inline to both the UL and the LI, I've tried displaying with and without

    <li>, with and without id="footer" and I've tried the id= on both the UL and the LI; the only changes seem to be losing and gaining the line height.
    Help!

    Here's the CSS:
    #footer {
    clear: both;
    position: relative;
    float: bottom;
    background: #fff;
    color: #990000;
    text-align: center;
    font-size: 1.2em;
    margin: 0;
    padding: 20px;
    }
    #footer ul {
    margin: 0;
    padding: 10px;
    list-style: none;
    display: inline;
    }
    #footer ul li {
    margin: 0;
    padding: 10px;
    list-style: none;
    display: inline;
    line-height: 200%
    }

    Here's the code:
    <ul>
    <li id="footer">
    <?php wp_get_links(41); ?>
    </li>
    </ul>

    I know it's gotta be something simple!

  2. linkit
    Member
    Posted 7 years ago #

    I am having the same issue.

    I have tried many different combinations to display a certain links list in a specific category footer.

    Has anyone got any ideas?

    #footer { clear:both; margin:30px 0 0px 0; padding:0px 0 15px 0; color:#666; }

    #footer ul { width:100%; list-style:none; float:left; margin:0px; padding:0px 0 0px 0; font-size: 11px; }

    #footer ul li { display:inline; float:left; margin:0 6px 0 0; padding:0px;

    <div id="linkfooter"><?php if ( is_home() ) { get_links('category=71,72,73'); } ?></div>

  3. Doodlebee
    Member
    Posted 7 years ago #

    You're missing the closing tag in your CSS...

    #footer ul li { display:inline; float:left; margin:0 6px 0 0; padding:0px; }

    If that doesn't help, remove the "display:inline;" and change it to "display:block;"

    If that doesn't work - I'm not guessing anymore. I'll need a link.

  4. linkit
    Member
    Posted 7 years ago #

    Okay tried them both still didnt work can I send you the link via email?

    Cheers

  5. ravetildon
    Member
    Posted 7 years ago #

    Anyone get a solution? I am having the same trouble in 2.1 with the sociable plugin on this site/page:

    http://www.hilaryshepherd.com/rantsnraves/2007/05/22/gay-flamingos-adopt-chick/

    Here is the code:

    div .sociable { margin: 16px 0 !important; }

    span.sociable_tagline { position: relative; }
    span.sociable_tagline span { display: none; width: 14em; }
    span.sociable_tagline:hover span {
    position: absolute;
    display: block;
    top: -5em;
    background: #ffe;
    border: 1px solid #ccc;
    color: black;
    line-height: 1.25em;
    }

    .sociable span {
    display: block;
    }
    .sociable ul {
    display: inline;
    margin: 0 !important;
    padding: 0 !important;
    }
    .sociable li {
    background: none;
    display: inline;
    list-style-type: none;
    margin: 0;
    padding: 2px;
    }
    .sociable ul li:before { content: ""; }
    .sociable img {
    float: inline;
    width: 16px;
    height: 16px;
    border: 0;
    margin: 0;
    padding: 0;
    }

    .sociable-hovers {
    opacity: .4;
    -moz-opacity: .4;
    filter: alpha(opacity=40);
    }
    .sociable-hovers:hover {
    opacity: 1;
    -moz-opacity: 1;
    filter: alpha(opacity=100);
    }

  6. ravetildon
    Member
    Posted 7 years ago #

    here is my email:

    too4short@aol.com

  7. ravetildon
    Member
    Posted 7 years ago #

    nothing?

  8. Chris_K
    Member
    Posted 7 years ago #

    What version of WP are you using? wp_get_links is pretty much useless with WP 2.1 and up.

    If 2.1+ , have a look at using wp_list_bookmarks instead.

  9. catsandbeer
    Member
    Posted 7 years ago #

    check to make sure you haven't made any errors in changes to your theme's css file - I had the same problem, restored an older version of my main css file and the sociable images went back to displaying inline - I don't know what the change was, but it's worth a shot for you - maybe I'll try to find out what it was ...

Topic Closed

This topic has been closed to new replies.

About this Topic