We're merging with GenerateBlocks! Learn more here.

[Resolved] Styling the “No results” message

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Styling the “No results” message

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #11582

    Dear Tom, dear GP/WPSP family,

    my very first post here after using the theme and the plugins for quite some time; this speaks volumes about the quality of your support forums. You guys can’t be recommended enough. Thank you!

    I need help now with customizing the WPSP “No results” message. On the homepage of the site in question WPSP will be used as more or less the only content, and is there to replace the bulky “Events Organizer” type of plugin. The announcements will live there briefly before being sent to Archive. This also means there will often be times with no announcements, so the content and the looks of “No results” message is quite important.

    I would like to be able to style the “No results” message with CSS, and to add some HTML if possible (e.g., “check out our Archive <LINK>” and similar). But I can’t target the message without affecting the regular WPSP fields, as they seem to share all the selectors. So briefly, my question will be:

    1. How to target the “No results” message with CSS, without affecting the regular WPSP layout? And how to add some HTML to the message?

    2. Alternatively, or perhaps even better, is there a way to specify a “No results” post to appear instead of “No results” message? In this way, all the style, HTML and media would come from the regular post features.

    Thank you once again for all the great stuff!


    Hi there,

    Glad you’re enjoying GP and WPSP! Thank you!

    There should be an option to add your own No Results message for the list in the “More Settings” tab of your list.

    To style it, you can use the wpsp-no-results selector:

    .wpsp-no-results {

    It’s not possible to include a page/post there instead, unfortunately.

    Let me know if you need more info 🙂


    Hi Tom, and thanks so much for the swift response. This selector works great, of course 🙂

    Re: my question No 2: is there a way to insert some (simple) HTML in the No Results message, like a link?

    Thank you!


    The option is sanitized using the same function as regular WP content, so you should be able to add some simple HTML directly into the option field.

    Let me know 🙂


    Thanks Tom, all works as expected.
    Great plugin, great support!


    Thanks! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.