So about the
Chapter Search function, I got a better way to do it which will not lead to any query bugs.
The idea is to use the value property of the search input field to get the search term, it converts the search term and the chapter text to lowercase for case-insensitive matching. then using the
querySelectorAll() method to get all the chapters, and loops through each one of them.
and for the people that are not interested in coding stuff. follow my steps and you will get it working.
Keep a backup of your theme before doing any modifications!
1. Navigate to madara > madara-core > single > info-chapters.php
2. Search for
3. then past my code above it
(the code contains some javascript which I'm unable to post in the message, the link below has the full code)
Take notes online. 'Free and no login' or 'AI assistant, visitor stats, privacy and productivity': fast, super simple, with publishing and markdown.
shrib.com