David Ballarin Prunera
Forum Replies Created
-
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!I meant the developer of the plugin, sorry for the error.
Forum: Reviews
In reply to: [DualTone] Perfect themeThanks so much, José Luís! I’m really glad you like it.
If you have any questions about customizing it, feel free to reach out—I’ll be happy to help!Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!Hi zhongxiyi,
You should contact the developer of the theme you are mentioning.
Thanks for your comments. I really appreciate
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!I have tried and it works. But, just in case I have replaced the standard string functions with multibyte functions to make sure it’s compatible with chinese characters.
You can download the new version of the plugin here: custom search excerpt
To make sure it works for you, ensure that: The database is set to UTF-8 (WordPress does this by default).
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!Hi zhongxiyi,
The code provided did actually work well, but I have not included in functions of the DualTone because it’s a functionality that may be needed using another theme.
So I created a small plugin that does it. I modified the size of the excerpt so that it displays the 50 characters before the keyword and 350 characters after. You can download the plugin from here: Custom Search Excerpt plugin. Then upload the zip file in you site and activate it.
Hope it works for you. An improvement that I would like to do is highlight the keyword in the excerpt, but for the moment I just created the plugin as is.
Best regards,
David
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!Hi zhongxiyi,
The DualTone is a block editor theme, it’s a little different from classical themes. I do not know if this is the difference you noticed.
Since its a block theme all templates may be customized, including the search template, and changing the excerpt by the content block or changing the excerpt block settings would add more words.
Your function will probably achieve the results you need. I will do the changes and if it looks good I’ll publish and update of the theme.
Thanks so much for your comments.
David
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!Hi zhongxiyi,
Sorry, I now understand. You want to highlight the search results, right? This is an interesting functionallity , I think you may find several plugins that perform this operation in different ways. Here is an example: https://www.ads-software.com/plugins/highlight-search-terms/. Tomorrow I will try it on my demo site and let you know.
But, even with it, you could end up with a result that has not the keyword in the excerpt or in the title. The search functionality is implemented by WordPress, and as any functionality, it’s better not to modify it in a theme. It’s better to use a plugin.
I think there are a lot of plugins that may try to improve this. Relevanssi is a well know plugin that does it.
And now, with AI assisted tools you may even find better search tools like the one in the Seth Godin’s page https://seths.blog/bot/
If you have more questions feel free to ask.
Cheers,
David
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!Hi zhongxiyi, thanks for your feedback!
I’m not really sure that I understand your question. The summary of the search results is like the excerpt. I think is generated by WordPress the same way for all themes.
In case of the DualTone theme, the search results are showed according to the search template which includes the Default Loop template part, which contains a Query Loop which contains a Excerpt block. It ‘s configured to include 61 words but you could customize it to your liking.
Let me know if you have any further question and I will do my best to help you.
- This reply was modified 4 months, 4 weeks ago by David Ballarin Prunera.
- This reply was modified 4 months, 4 weeks ago by David Ballarin Prunera.