zhongxiyi
Forum Replies Created
-
Forum: Plugins
In reply to: [Insert Pages] garbled text appeared in the editing box,I have solved this problem.
Now I have a new idea.
For example, I want to insert another page under the H2 title of the current page.
The first title of the other page is H2, and the second title is H3.
Can I automatically change the H2 title of the other page to H3 on the current page, and so on.
Change the H3 title of another page to H4.
Is it possible?
May I ask,
Before adding this feature, it can also be understood as before the version update.
Is there any way I can temporarily use this feature first?
Or modify some of the code.
Then wait for the version update.
If it’s convenient, could you please help me!
I have already uploaded the file,
All translations have been completed,
You can take a look.
I hope the functions I need can be added as soon as possible.
Thanks again!
By the way,
I have created a Chinese translation for this plugin, but I don’t know how to upload it.
If possible, I am willing to send it to you via email.
I can provide translations for each version of this language in the future.
Thank you for your reply,
Yes, I think it’s very important to me,
Perhaps there are also friends who are looking forward to using this option,
Sincerely hope that you can add this feature option for users to choose from!
I hope this plugin is even better!
Thanks again!
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!Encountering another problem, as you said,
I used it https://www.ads-software.com/plugins/highlight-search-terms/ This plugin,
When searching for a certain keyword and encountering page flipping, the second page will not be highlighted,
I hope you will continue to work hard to check and optimize the theme,
Thank you for your efforts!
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!Now it is running perfectly,
Thank you very much for having such an excellent theme!
Your reply really makes me happy!
You are such an excellent developer!Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!This code actually cannot display the results properly in your theme,
I don’t know where the problem lies.
So please help review the code again.
I am using Chinese, is it related to this?
I hope you can help me solve the problem and reply to me,
Thank you.Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!If you really achieve the functionality I need, that would be perfect!
Your reply is very timely and the explanation is very thorough!
Thumbs of both hands raised for you!
Looking forward to the update of the new version!
Wishing your theme continued excellence! Make more people fall in love with it!
Sincere comment from medical enthusiasts: Chiu
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!Firstly, thank you very much for your reply!
I have tried other topics before, and after searching, AI told me a very interesting piece of code,
function custom_excerpt_for_search($excerpt, $post_obj) {
if (is_search()) {
// 获取文章的全文
$full_text = strip_tags($post_obj->post_content);
// 搜索关键字
$search_terms = explode(' ', get_query_var('s'));
// 循环搜索关键字并截取包含关键字的文本
foreach ($search_terms as $term) {
$text_to_search = $full_text;
$pos = stripos($text_to_search, $term);
if ($pos !== false) {
// 截取关键字周围的文本,这里可以根据需要调整长度
$excerpt = substr($text_to_search, $pos - 50, 100);
break; // 只截取第一个关键字匹配的内容
}
}
}
return $excerpt;
}
add_filter('get_the_excerpt', 'custom_excerpt_for_search', 10, 2);Add this code to functions.php,
The function I need will be implemented in other themes.
I really like the style of your theme, but unfortunately, the number of words presented in your theme is very small, and sometimes individual searches do not show any content.
I compared it and it’s possible that the structure is different from other themes.
I hope the code I provided can be helpful to you!
Make your theme better and better! Let more people fall in love with it.
Forum: Plugins
In reply to: [Classic Editor] How to add your own preset to the classic wp editor?May I ask which file to edit specifically?
Forum: Reviews
In reply to: [DualTone] The theme is clean and refreshing, I really like it!Thank you very much for your reply. You may have misunderstood my meaning.
What I am looking forward to is extracting the keyword section of the full text in the search results.
For example, “ABCDEFGHIJKLMNOPQRTWXYZ”.
The keyword I searched for is’ HI ‘. When searching for the full text, on the search results page, besides the title, the content below should be’ FGHIJK ‘,
It is a partial excerpt from the entire text
I don’t know how to express myself, can you understand?
Sincerely looking forward to your reply.
Our theme is the best!
Forum: Themes and Templates
In reply to: [BlogBD] 搜索结果希望是摘取的搜索词片段Through translation:
I hope the search results page is a fragment of the search term, not the entire article.
But if there are many articles with this word, it will actually affect the readability in key articles.@ajay I have finished the Chinese translation, you can take a look
Please tell me when version 3.10 will be finished?
I desperately need this feature。
Thank you for being able to reply!