I have several custom WYSIWYG fields with long formatted text as content. Since toolset is ignoring the wordpress more tag, I am wondering how I can add a "read more" button after an excerpt of the content on the front-end template. The button should then show the hidden content directly in the same field (not open another URL).
This post seems to be quite similar to what I need, but unfortunately the documentation of the solution is not accessible any more ("hidden link"): https://toolset.com/forums/topic/implement-read-more-on-wysiwyg-field-with-inline-expansion/
Setup: WP 6.0, Astra theme, WP block editor.
Thank you for your assistance!
Note: You'll replace "field-slug" with the actual slug of your WYSIWYG custom field and can adjust the other attribute values, as needed.
I hope this helps and for more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors: https://toolset.com/contractors/
Though I could not apply your solutions since I do not have the needed html/js/css programming skills.
I opted for another solution: For each field where I need it, I created an additional WYSIWYG custom field so that I could split the content (e.g. "Description" and "Description (read more)". Then I added the first field as "normal" single field block on the template and the second field as Stackable Accordion (v2) field with a "read more ..." title so that the second field can be expanded by the website visitor. That is exactly the solution I needed. Thanks for your help anyway, I am sure that more skilled people will benefit from it.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.