WordPress.org

Ready to get started?Download WordPress

Forums

How To Close The Big Gap Between Widgets? (8 posts)

  1. SheridanPassell
    Member
    Posted 6 years ago #

    In the sidebar it's putting large gaps between each widget and eating up valuable space. I can't for the life of me find where I can close those gaps? (see http://www.movie-moron.com, on the left hand side)

    Thanks

  2. Adam Brown
    Member
    Posted 6 years ago #

    I don't see any big gaps (in FireFox).

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    I see what you're talking about. Something is putting some kind of sidebar-spacer entry in there.

    What does the top of your theme's functions.php file look like? Post a copy of the file on http://wordpress.pastebin.ca and post the link to it back here.

  4. SheridanPassell
    Member
    Posted 6 years ago #

    Thanks.

    http://wordpress.pastebin.ca/952097

    It would be great to know how to set the amount of space, and how to get rid of the dividing line if need be?

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Well, do you want to get rid of the space or just adjust it?

    Getting rid of the space means removing <li class="sidebar-spacer"></li> from the code you posted for us.

    Adjusting it means editing the .sidebar-spacer bit in your theme's CSS file.

  6. SheridanPassell
    Member
    Posted 6 years ago #

    When I've tried to adjust the sidebar spacer values in
    http://wordpress.pastebin.ca/952575
    They make no difference on the page
    eg width, margin-top, margin-bottom
    How come?

    So the sidebar spacer may have to just be removed completely.

    The other thing I'm desperate to figure out on this issue is how to replace the widget header (eg 'Recent Posts') with a jpeg, so the column on the left visually matches the (non widget) column on the right.

    Thanks

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Try setting the height to 0px.

    Although I'd just get rid of them entirely.

  8. SheridanPassell
    Member
    Posted 6 years ago #

    Changing the height didn't make any obvious difference, so I will just get rid completely.

    Would you know how to replace the widget header (eg 'Recent Posts') with a jpeg?

    I've been told to look for:
    function wp_widget_recent_entries($args) {}
    in
    wp-includes/widgets.php
    But then they never explained how to alter it once it was found?

Topic Closed

This topic has been closed to new replies.

About this Topic