add space between posts in archive list in text widget

  • Unknown's avatar

    I added a text widget with the (archive) code, so that all my 170 posts are listed as links in the text widget. I want to add a space (or perhaps the correct term is line break) between each post title so that they are not so bunched up and hard to read. Is it possible to do that? I did click the “add paragraphs” button, but that doesn’t seem to create the spacing I want.
    To clarify, what I want it to look like is:

    Post 1
    (space)
    Post 2
    (space)
    Post 3
    (space)

    rather than:
    Post 1
    Post 3
    Post 3
    etc.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    This list of links is produced automatically, so you cannot change its styling (Except if you had the Custom Design upgrade). You can adjust the styling only if you write each separate link manually instead of using the archives shortcode.

  • Unknown's avatar

    justpi – thanks for your response, much appreciated!
    Now I understand that you can’t change the styling of the list of links in the archive.

    However, you mentioned that I could do that if I write each one manually. Thats what I was doing previously in a text widget but I didn’t see a way to make each post title in the list into a link that you could click on to take you to the post. I just had a list of posts that were not links. I don’t mind doing it manually if there is a way to make the post titles into links. Any advice on that?

  • Unknown's avatar

    You’re welcome.
    Yes, you need to use a Text widget. For each link, use this model:
    <p><a href="POST URL HERE">TITLE HERE</a></p>

  • Unknown's avatar

    Awesome – I just tried it and it worked.
    Now I’ve got a bit of a job to manually plug that code into the text widget for each of the 170 posts on my blog, but I’m glad I have the option and know how to do it now. I think I’ll save that activity for a rainy day though. Thanks again for your advice!

  • The topic ‘add space between posts in archive list in text widget’ is closed to new replies.