Support » Fixing WordPress » Formatting problem in external links section, please help

  • Resolved schalicto

    (@schalicto)


    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • moshu

    (@moshu)

    “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.

    schalicto

    (@schalicto)

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

    moshu

    (@moshu)

    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

    schalicto

    (@schalicto)

    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

    moshu

    (@moshu)

    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>'); ?>

    schalicto

    (@schalicto)

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

    Chris_K

    (@handysolo)

    A page break? Huh?

    schalicto

    (@schalicto)

    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!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Formatting problem in external links section, please help’ is closed to new replies.