Problem:
How to add class to anchor if post title is more than certain number of characters.
Solution:
To count the number of characters you can use jQuery and using jQuery you can easily add/remove the class name to the anchor tag.
You can find the proposed solution with the following reply:
https://toolset.com/forums/topic/add-class-if-post-title-more-than-a-certain-number-of-characters/#post-392959
Relevant Documentation:
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by GeorgeM4735 7 years, 11 months ago.
Assisted by: Minesh.