WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Sidebar
[resolved] Display only recent post and change title font (8 posts)

  1. Marinda333
    Member
    Posted 6 months ago #

    Thank you for a fantastic plug-in.
    I am not a pro when it comes to coding, so please have patience if I'm asking dumb questions. :-)

    I am publishing one post per day, and would like for that post to be displayed in the sidebar. Is there a way that I can only display the recent post (only one post showing).

    Then, I have read through the support on changing font colour etc. but are not sure if the code that you have provided are inserted at the bottom of the plugin (in the CSS area) or on my template CSS? I am wanting to change the title to bold.

    Thank you very much for your help.

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

  2. aldolat
    Member
    Plugin Author

    Posted 6 months ago #

    Hello,

    1. Sure you can display only the latest post. To do this, you can use the plugin "Posts in Sidebar", but also you can use the widget "Recent Posts" which comes bundled with WordPress.

    2. To make bold the title (or something else) you can use either the CSS section of the widget or the CSS file of your current theme.

    If you need further help, ask me.

  3. Marinda333
    Member
    Posted 6 months ago #

    Hi, thank you for your reply. I've checked out Recent Posts, but I like all the options that I get with the "Posts in Sidebar" plugin. Please can you tell me what settings I need to change to only show the recent post. I have tried 'Order by Date" and then changed to to "Accending', but it doesn't seem to only give me the recent post?

  4. aldolat
    Member
    Plugin Author

    Posted 6 months ago #

    Delete the current "Posts in Sidebar" widget and place a new instance. The widget will show the last posts, from the newer to the older. Change only the option "Display this number of posts" to 1 and you are done.

    Let me know.

  5. Marinda333
    Member
    Posted 6 months ago #

    Great! It's starting to look the way I want. It is displaying the most recent post, and I have checked the Full Content option http://www.crossfitkwagga.co.za/.
    All that I now want to change is:
    1. the line-spacing (to be the same as first paragraph under 1. Snatch Complex)
    2. have all the text align to the left
    3. Make the heading bold

    How do I do that?
    When you say the CSS section of the widget, is that the 'Custom Styles' area???

    Thank you very much for your help! I really appreciate it!

  6. aldolat
    Member
    Plugin Author

    Posted 6 months ago #

    Here are my suggestions.

    1. Line spacing.

    #sidebar .pis-ul div {
    	margin: 0;
    	padding: 0;
    }

    2. Text alignment

    The text is already aligned to left.

    3. Bold for heading

    #sidebar .pis-title {
    	font-weight: bold;
    }

    You can put these CSS rules either in your style.css file or in the "Custom styles" area of the widget.

    Let me know.

  7. Marinda333
    Member
    Posted 6 months ago #

    Thank you Aldolat that is perfect!!! Thank you for great support with this plugin!

  8. aldolat
    Member
    Plugin Author

    Posted 6 months ago #

    You're welcome!

Reply

You must log in to post.

About this Plugin

About this Topic