WordPress.org

Forums

Posts in Sidebar
[resolved] How to remove space between posts? (13 posts)

  1. lleroy
    Member
    Posted 2 years ago #

    Hi!

    I'm having a similar problem. I'm running 'posts in sidebar'-plugin on the F2 theme, and it makes a 1-line space between every post.

    Please see this screenshot: http://snag.gy/YrcpA.jpg

    The top one is the "AK: Featured Post" plugin, and the bottom one is "Posts in sidebar".

    How can I make it display 1 post per line?

    http://wordpress.org/extend/plugins/posts-in-sidebar/

  2. aldolat
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    It's a CSS-related problem. Could you give me the link to your site?

  3. lleroy
    Member
    Posted 2 years ago #

    Thanks for the quick reply! :-)

    The site I'm using it on is password-protected at the moment (until it goes live), but I have setup a "clone" of it, just without the posts etc here: http://digis.dk/tekdok

  4. aldolat
    Member
    Plugin Author

    Posted 2 years ago #

    Open the style.css file in the root directory of your F2 theme and paste these lines at the end of the file:

    .widget li.pis-li:before {
      content: none;
    }
    
    .widget li.pis-li p.pis-title:before {
      content: "\203A 020";
    }

    This will fix the "problem". :)

    Be aware that you wiil have to re-paste these lines whenever you'll update the theme. Or simply create a child theme.

    Please, change the topic to "Resolved", if you resolve.

  5. lleroy
    Member
    Posted 2 years ago #

    I added another \ before '020', then it worked like a charm :-)

    So the inserted code is:

    .widget li.pis-li:before {
      content: none;
    }
    
    .widget li.pis-li p.pis-title:before {
      content: "\203A 20";
    }

    Thank you very much for the quick reply and a great plugin!

  6. lleroy
    Member
    Posted 2 years ago #

    Hm.. For some reason, the last \ doesn't show.

    I'll copy-paste without the code-wraparound then:

    .widget li.pis-li:before {
    content: none;
    }

    .widget li.pis-li p.pis-title:before {
    content: "\203A \20";
    }

    :) thanks again.

  7. aldolat
    Member
    Plugin Author

    Posted 2 years ago #

    The correct code is here: https://gist.github.com/aldolat/5390305

    :) thanks again.

    You're welcome! :)

  8. jpmarceorg
    Member
    Posted 2 years ago #

    Hello

    I added the code you provided at the end of the style.css file of my theme but I still have a blank line inserted between posts that I would like to suppress.

    My website is : saint-jeannet.info

    The PIS widget is at the top of my sidebar below the Search widget

  9. aldolat
    Member
    Plugin Author

    Posted 2 years ago #

    Hi jpmarceorg,
    Remove the code you just added to your style.css because it's customized for lleroy, and add these lines instead:

    li.pis-li p {
    margin-bottom: 0;
    }

    Let me know.
    Bye!

  10. bluebanzai
    Member
    Posted 2 years ago #

    Aldolat,

    Can you please help me as well? Seems like 3 extra lines after the AK: Featured Post widget.

    http://southwedgemission.org/

    Thanks!

  11. aldolat
    Member
    Plugin Author

    Posted 2 years ago #

    bluebanzai,
    add this to the end of your CSS style:

    .widget_ak_featured_post_widget ul {
    margin-bottom: 0;
    }
  12. jpmarceorg
    Member
    Posted 2 years ago #

    Two months ago you provided me a fix that suppressed the space. My apologies for not providing you many thanks and positive feedback.

  13. aldolat
    Member
    Plugin Author

    Posted 2 years ago #

    @jpmarceorg
    You're welcome! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts in Sidebar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.