WordPress.org

Ready to get started?Download WordPress

Forums

Efficient Related Posts
Margin too important - Must be tuned !!! (3 posts)

  1. JamesBB
    Member
    Posted 3 years ago #

    Hi Guys!

    This plugin works perfect although I found the margin between the Title
    (Related Posts) and the following related posts too important.
    It comes from the first

      that generates an important margin-top.

      Here is the code:
      $output = "<ul class='related_post'>{$output}</ul>";
      What is this class referring too?
      I tried to create a similar class in style.css and put a margin-top of 0px but it does not make any change.

      Finally when I used Firebug and replaced the code <ul class="related_post"> by <ul style="margin-top: 3px;"> it worked perfect. No more huge gap!
      But I don't feel like hacking the original code.

      Anyone knows how to reduce the huge gap between the title and the list of related posts?

      THANK YOU for your help!!!
      Jamy

  2. JamesBB
    Member
    Posted 3 years ago #

    Please read It comes from the first <ul> that generates an important margin-top.

  3. aparentdesign
    Member
    Posted 3 years ago #

    You need to override the ul.related_post style with your own preferences. Use !important if necessary to get your settings to stick. No need to hack the plugin, just put it in your theme css.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic