Skip Navigation

[Resolved] show "No items found" text in a specific colour

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by andreaP-10 3 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2176505
screenshot03.JPG

Hi there
in a view loop I need show "No items found" text in a specific colour
Expecially, I need to show it in white to make it consistent with the rest of design
How can I do this?
Thank you very much

#2176879

Hi,

Thank you for contacting us and I'd be happy to assist.

To show the "No items found" text in white, you can follow these steps:

1. You can wrap the "No items found" text in a special 'span' tag with class 'white-text':


<span class="white-text">[wpml-string context="wpv-views"]No items found[/wpml-string]</span>

2. Next, in the view's custom CSS, you can include this code to make anything with this 'white-text' class to show in white text color:


.white-text {
color: white;
}

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2176899

Hi Waqar,
thank you for your very helpful assistance.
My issue is resolved now. Thank you!