Dear WordPress Tooltip Users, hope this message find you are doing well and having happy weekend with your family 🙂 We get an amazing wordpress tooltip user’s ticket, he said:
Tooltips Optional Settings – Disable Tooltips for Selected Classes and IDs: .wp-caption-text
what is text below inserted images. and is working, BUT when next time is tooltip word in the text, for example “NASA” it is not set as tooltip.I expected when I disable Tooltips in selected class it will be found in other text, not totally disabled.
After requested more details, the user told us:
I was talking about other bug:
1. set this option “Tooltip Keyword Matching Mode” to “Add tooltips to the first matching keyword in the same page”
2. I have set option “Disable Tooltips for Selected Classes and IDs” to class “.wp-caption”
3. Now when the keyword first match on page is in the disabled class, keyword is not matched on second match.
– keyword “NASA” is first time in the image description and it is not matched because disabled class .wp-capttion – this is ok
– but next appearances of “NASA” are but not matched as Tooltip
Then we understand when he opt to only add tooltip effect to the first matching tooltip term in a wordpress page, and at the same time he disabled the CSS class which wrapped the first matching tooltip term, then the second matching tooltip term did not have tooltip effects 🙂
Okay, this is not a bug, and actually a simple method is use wordpress tooltip shortcode to make the wordpress tooltip effect for the second tooltip term “NASA”, but our developer said he want to improve wordpress tooltip plugin to the easiest plugin to use, so he tried to solve this problem for user, but finally, he found, because our tooltip core functions is based on php function preg_replace, and tehe php function preg_replace have no method to match the specified Nth match! We read all documents of php function preg_replace and read many wordpress articles, we can not find the correct tools in php or in wordpress tooltip solve this problem, finally, our developer find another method: add a new option in the “Keyword Matching Mode” selection box — Add tooltips to the first N matching keyword in the same page. Then the problem can be solved in the new verison WordPress Tooltip Plugin 14.7.6 🙂
How to Add WordPress Tooltips to the First N Matching Tooltip Term in the WordPress page?
1: Login your wordpress site
2: Click “Tooltips” menu item
3: Click Tooltip Global Settings sub menu item
4: Then you will open the WordPress Tooltip Global Settings panel, you will find in panel “Keyword Matching Mode”, we have added a new option “Add tooltips to the first N matching keyword in the same page” in the “Keyword Matching Mode” select box
It looks like this:
Please try to change options in “Keyword Matching Mode” select box, when you selected “Add tooltips to the first N matching keyword in the same page” option, then you will find a new input text box, in which you can opt to add the first N matching keyword in the same wordpress page, for example, in the case which the amazing user told us, what he need to do is just enter “2” in the input box, then because the first tooltip term effect has been disabled by his settings in the option “Disable Tooltips for Selected Classes and IDs” to class “.wp-caption”, then wordpress tooltip plugin will try to add tooltip effect to the next 2ed tooltip term 🙂
Please note, by default, the input text box will be hide, only when you selected “Add tooltips to the first N matching keyword in the same page” option, then the input text box will be displayed, if you try to select other options in the Keyword Matching Mode panel, the input text box will be hide again 🙂
This changes will effect:
wordpress tooltips core function
and
acf tooltip
bbpress tooltip
buddypress tooltip
contact form 7 tooltipwoocommerce tooltip
woocommerce tooltip
advanced woocommerce tooltip
custom tabls for woocommerce tooltip
menu tooltip
tablepress tooltip
Would you please upgrade to the wordpress tooltip plugin 14.7.6 and do a check? 🙂



Leave a Reply