Remove/Change Grid Error Message When No Posts

Hello. I’m using the grid to display real estate listings on my site. Sometimes, we don’t have any listings that fall within the category I’m trying to display, but things change daily. Tomorrow I might. Ideally I’d like to just be able to suppress the error message when there are no results, but my second choice would be to change the error message that displays.

I’ve tried changing the class using .tg-error-msg { display:none; } as recommended in another post but that doesn’t seem to be working. Maybe I’m not putting it in the right place? I’ve tried both in the site customizer css and the grid css areas.

Any advice?

Hey Channing,

Are you referring to the message like in the following screenshot?

image

There’s no option to remove nor edit it so custom CSS would be required. The CSS selector you used is correct as I’ve tested it and it works or hides the error message. Regretfully, we can’t investigate custom code issues though as custom development is not part of our product support. Just try checking your CSS for errors. You can use tools like http://csslint.net/ to help you find errors.

Also, you can change the text just by CSS like the following screenshot.

It is just important to note again that we can’t help implementing this in your site as this is outside the scope of our theme support. If you experience issues with custom code and not sure how to fix, please consult with a developer.

Hope that helps and thank you for understanding.

Thanks for the response. Interestingly, the combination of css changes you suggested did remove the error message, but the before class was not implemented. I’m happy though with having just a blank container – that’s acceptable. Interestingly if I don’t include the before message then the font size reduction on the main class doesn’t work. Odd. Will have to troubleshoot that later!

Hey @idakellyrealtors,

For the basic CSS troubleshooting, here are some related links for further reading, this could help you in finding and implementing some CSS fixes:

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.