WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Formatting problem in external links section, please help (9 posts)

  1. schalicto
    Member
    Posted 8 years ago #

    I'm not a programer but I have a problem on my blog that I can't get my programer to fix. If you check out my blog at http://www.b3studios.net and look at the sidebar links section you notice that it is formatted very wrong. If you could help me by telling me which file needs to be corrected and even if you could help me rewrite the file so that it looks right I would greatly appreciate it. Thanks in advance.

    -Josh

  2. moshu
    Member
    Posted 8 years ago #

    "Very wrong" is a subjective assessment :)
    It displays some kind of "description" above the link - though I couldn't figure out where are they coming from.
    Maybe you can paste the sidebar.php to http://pastebin.com and post back the URI.

  3. schalicto
    Member
    Posted 8 years ago #

    What a cool service. The code is now posted at
    http://pastebin.com/767830

  4. moshu
    Member
    Posted 8 years ago #

    So, what is exactly what you want to achieve?
    The template tag in use in your sidebar:
    http://codex.wordpress.org/Template_Tags/get_links
    is set to display the "description" of the links which screws up your display.
    You could:
    a) use another template tag which by default doesn't display the description, just the link
    b) play around with the stylesheet and/or code until it looks as you want
    c) set the existing tag to not display the description

  5. schalicto
    Member
    Posted 8 years ago #

    I appologize, I am not a programmer. I'm not very good at playing around with code. I would like the description to show, but there is a line break after the horizontal line that I would like to have elimiated.

    eg.

    link 1
    ----

    description 1
    link 2
    ----

    Description 2

    I would like it to look like

    Link 1
    ----
    Description 1

    Link 2
    ----
    Description 2

    .

    If you could show me what to change in the code to make this happen I would appreciate it.

    -Josh

  6. moshu
    Member
    Posted 8 years ago #

    I am not 100% sure, but I'd try to remove the <br /> from here:
    <ul>
    <?php get_links('-1', '<li>', '</li>', '<br />'); ?>
    </ul>

    line 156 in pastebin. So make it

    <?php get_links('-1', '<li>', '</li>'); ?>

  7. schalicto
    Member
    Posted 8 years ago #

    That worked, but I still want a page break in there.

  8. Chris_K
    Member
    Posted 8 years ago #

    A page break? Huh?

  9. schalicto
    Member
    Posted 8 years ago #

    I figured it out! w00t w00t. Now I am 1337 haX0r!
    I'm kidding abuot that. Seriously though, thanks for your help on that! You rock!

Topic Closed

This topic has been closed to new replies.

About this Topic