Hi, great plug-in, simple plug-ins that do one job well aren’t all that common these days.
Wanted to mention, on the current install there is a directory error, some of the JS files on the plugin are at vendor/…/themes/… but its written in the code as vendor/…/theme/… (without the s on themes) so pretty easy to fix.
What I did want to ask, any idea how to get the plug-in to recognize custom post types. My theme has a portfolio section, can’t see why its not picking it up under the settings> post types checkboxes.
Any idea what might be to be missing for that to happen?
Also, here is some simple css I added to make it work with my theme and make it a little more user friendly, maybe its of use to you for a future update.
.ui-tooltip {
position:absolute;
z-index:9999; /*this is busier than z-index:2; these days ??*
max-width:300px;
padding: 10px;
}
body .ui-tooltip
{
position: relative;
background: #37474f;
border:0px !important;
box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
-moz-box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
-webkit-box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
-o-box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
border-radius: 6px 15px 15px 15px;
-moz-border-radius: 6px 15px 15px 15px;
-webkit-border-radius: 6px 15px 15px 15px;
}
.ui-tooltip:after {
bottom: 100%;
left: 25px;
border: solid transparent;
content: ” “;
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(75, 101, 117, 0);
border-bottom-color: #f9a825;
border-width: 15px;
margin-left: -15px;
}
Thanks again.
]]>This is a great plugin but I’m having a small problem. When I go to my website on an iphone and tap the highlighted word to elicit a hover box defining the word, the hover box never goes away unless I navigate away from the page or scroll all the way to the top. This happens with browsers Safari and Chrome. With an Android smart phone, the hover box disappears when you double-tap the screen (Chrome browser). No problems with plugin on laptop.
Thanks for any help!
Chris
The plugin is outstanding, exactly what I need except for one issue: I would like to list the entire glossary when hitting a page like “localhost.com/glossary” or whatever. Does it do this and I am just missing it? Thanks!
]]>Hi,
I have an issue where numbers with the ‘$’ character in them where being lost in the tooltip.
example in this page https://www.realhomeownership.com/the-math/ hover application fee, in the backend is the fee is $25 per applicant. the $25 is being lost.
]]>I implement Japanese hover glossaries support.
but i have less knowlege about php and creating wordpres plugin.
I need your friendly help to implement it officially.
]]>Cyrillic terms are not highlighting at all.
Bug or feature?
The plugin is simple and works as expected, but I would like to know if there is any easy way to make it work with custom post types?
Thanks ??
Is there a CSS ready classes to disable certain terms?
I want to disable the tooltip for certain page/section..How can I do this?
Thank you
]]>2015/07/31 02:57:45 [error] 12467#0: *729 FastCGI sent in stderr: “‘ in /home/example/public_html/wp-content/plugins/wp-glossary-hover/public/includes/class-tooltip-parser.php on line 213
PHP message: PHP Warning: preg_match(): Unknown modifier ‘F’ in /home/example/public_html/wp-content/plugins/wp-glossary-hover/public/includes/class-tooltip-parser.php on line 213
PHP 5.5.9-1ubuntu4.11
]]>Hello, I am interested in some way to apply styling to the alt text when you hover over a glossary term. Even the option to open a shadow box with the definition would be great (if clicked on). Is this possible? Donation required?
]]>Hello!
Wanted to know whether it would be possible to add synonyms and different forms of terms? For example, different declension and plural? Thank you!
Good afternoon!
Noticed an error in the plugin-when you create a feedback form in plugin Jetpack if there is a word in the glossary, it is displayed in the form
Hi,
I had an issue where paragraphs with the ‘&’ character in them where being lost if the WP Glossary Hover plugin was trying to insert the tooltip.
Tracked it down to the ‘$newNode->appendXML($nodeValue)’ failing in class-tooltip-parser.php.
This is the solution I came up with:
line 217: if ($updateNode)
{
$newNode = $dom->createDocumentFragment();
//error_log(“before append: “.$nodeValue);
$convertedNodeValue = str_replace(‘&’, ‘&’, $nodeValue); //13.12.2014 Duncan M Added otherwise ‘appendXML’ below was consistently failing
//error_log(“after conversion: “.$convertedNodeValue);
//if (FALSE == $newNode->appendXML($nodeValue))
if (FALSE == $newNode->appendXML($convertedNodeValue))
{
error_log(“WP Glossary Hover: appendXML failed, line 227 class-tooltip-parser.php”);
}
$node->parentNode->replaceChild($newNode, $node);
}
but could be more elegant, and str_replace probably needs to account for more characters than just ‘&’… didn’t have time for further investigation sorry!
Otherwise, awesome plugin ??
]]>Hi,
This may be a stupid question but I was just wondering how many words the glossary can store in total?
Thanks!
]]>Is the glossary CPT registration filterable so it can be made to support comments?
]]>It would be good to limit the characters or words displayed in the tooltip in case the definition is very long. This could be an arbitrary or parameterized number, but the best solution would be to add an excerpt field to the glossary CPT and display the custom excerpt in the tooltip. If no excerpt is specified, then use the auto-generated excerpt that cuts off after a certain point. (Should play well with the Advanced Excerpt plugin.) At the end of an excerpt it would also be great to have an automatic “read more” link to the full term definition page.
]]>This is the best way I’ve found to create a simple glossary. The alternatives are bloated, complicated, and not thought out very well.
Would it possibly work better to make the Glossary+Terms custom post type a custom taxonomy instead? Like a separate kind of tag?
Used as a CPT, it might be useful to have glossary terms use their own hierarchical taxonomy and share tags with posts.
]]>Hi there,
I wanted to install this nice plugin, but unfortunately I got this error when doing so:
Parse error: syntax error, unexpected ‘[‘ in /home/sites/site64/web/wp-content/plugins/wp-glossary-hover/public/includes/class-tooltip-parser.php on line 132
I have no other settings or plugins that might interfere.
Thanks,
Tom