{"id":55151,"date":"2017-03-21T08:21:08","date_gmt":"2017-03-21T08:21:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/acf-tooltip\/"},"modified":"2024-12-22T17:55:10","modified_gmt":"2024-12-22T17:55:10","slug":"acf-tooltip","status":"publish","type":"plugin","link":"https:\/\/te.wordpress.org\/plugins\/acf-tooltip\/","author":7370970,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.5","stable_tag":"1.2.5","tested":"6.7.5","requires":"4.7","requires_php":"","requires_plugins":null,"header_name":"ACF Tooltip","header_author":"Thomas Meyer","header_description":"","assets_banners_color":"d59c66","last_updated":"2024-12-22 17:55:10","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_donations&business=XMLKD8H84HXB4&lc=US&item_name=Donation%20for%20WordPress%20Plugins&no_note=0&cn=Add%20a%20message%3a&no_shipping=1&currency_code=EUR","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/acf-tooltip\/","header_author_uri":"https:\/\/dreihochzwo.de","rating":5,"author_block_rating":0,"active_installs":2000,"downloads":15185,"num_ratings":6,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"tmconnect","date":"2017-12-04 13:02:00"},"1.1.0":{"tag":"1.1.0","author":"tmconnect","date":"2017-12-04 13:02:00"},"1.2.0":{"tag":"1.2.0","author":"tmconnect","date":"2018-04-10 10:10:34"},"1.2.1":{"tag":"1.2.1","author":"tmconnect","date":"2018-12-13 12:49:51"},"1.2.2":{"tag":"1.2.2","author":"tmconnect","date":"2023-01-21 09:49:54"},"1.2.3":{"tag":"1.2.3","author":"tmconnect","date":"2024-12-22 17:30:24"},"1.2.4":{"tag":"1.2.4","author":"tmconnect","date":"2024-12-22 17:18:54"},"1.2.5":{"tag":"1.2.5","author":"tmconnect","date":"2024-12-22 17:55:10"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":6},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1620887,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1620887,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1620887,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1620887,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1620887,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"ACF Tooltip in standard mode"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,2214,2217,3062,788],"plugin_category":[59],"plugin_contributors":[81793],"plugin_business_model":[],"class_list":["post-55151","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-acfpro","plugin_tags-advanced-custom-fields","plugin_tags-instructions","plugin_tags-tooltip","plugin_category-utilities-and-tools","plugin_contributors-tmconnect","plugin_committers-tmconnect"],"banners":{"banner":"https:\/\/ps.w.org\/acf-tooltip\/assets\/banner-772x250.png?rev=1620887","banner_2x":"https:\/\/ps.w.org\/acf-tooltip\/assets\/banner-1544x500.png?rev=1620887","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/acf-tooltip\/assets\/icon-128x128.png?rev=1620887","icon_2x":"https:\/\/ps.w.org\/acf-tooltip\/assets\/icon-256x256.png?rev=1620887","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/acf-tooltip\/assets\/screenshot-1.png?rev=1620887","caption":"ACF Tooltip in standard mode"}],"raw_content":"<!--section=description-->\n<p>If an ACF field requires a longer instruction text, the layout of the edit screen is messy and a lot of space is wasted.<\/p>\n\n<p>The ACF Tooltip plugin hides the field instructions, adds a help symbol to the field labels and generates a tooltip based on the instruction text.<\/p>\n\n<h4>New in Version 1.2.0<\/h4>\n\n<p>The tooltip will not hide if moused over, allowing create a tooltip with a link inside without hiding the tooltip.<\/p>\n\n<h4>Custom settings<\/h4>\n\n<p>There are 7 filters that allow adjusting the design and the behavior of the tooltips.<\/p>\n\n<p><strong>This plugin works only with the <a href=\"https:\/\/www.advancedcustomfields.com\/pro\/\">ACF PRO<\/a> (version 5.5.0 or higher).<\/strong><\/p>\n\n<h4>Localizations<\/h4>\n\n<ul>\n<li>English<\/li>\n<li>Deutsch<\/li>\n<\/ul>\n\n<h3>Custom settings with filter hooks<\/h3>\n\n<p>There are 7 filters that allow adjusting the design and the behavior of the tooltips can be adjusted.<\/p>\n\n<h4>Set the design of the tooltips<\/h4>\n\n<pre><code>&lt;?php\nfunction acf_tooltip_style() {\n    $style = 'qtip-acf';\n\n    return $style;\n}\nadd_filter('acf\/tooltip\/style', 'acf_tooltip_style');\n?&gt;\n<\/code><\/pre>\n\n<p>The available styles can be found on the <a href=\"http:\/\/qtip2.com\/options#style\">qTip options page<\/a> and are shown on the <a href=\"http:\/\/qtip2.com\/demos\/\">qTip demo site<\/a>.<\/p>\n\n<p>You can mix the styles; e.g. \"qtip-acf qtip-rounded qtip-shadow\"<\/p>\n\n<p>If you like, you can define your own style, with the class name of your style from your own CSS file (see next filter).<\/p>\n\n<p>The qtip-acf style is the standard style, which is set without a filter.<\/p>\n\n<h4>Define your own CSS file<\/h4>\n\n<pre><code>&lt;?php\nfunction acf_tooltip_css() {\n    $css_file = get_bloginfo('template_url') . '\/qtip-own.css'; \/\/ if the file is saved in your themes folder\n\n    return $css_file;\n}\nadd_filter('acf\/tooltip\/css', 'acf_tooltip_css');\n?&gt;\n<\/code><\/pre>\n\n<p>You will find a 'qtip-example-style.css' in the '\/assets\/css' folder.<\/p>\n\n<h4>Positioning the corner of the tooltip<\/h4>\n\n<pre><code>&lt;?php\nfunction acf_tooltip_position_my() {\n    $position_my = 'center left';\n\n    return $position_my;\n}\nadd_filter('acf\/tooltip\/position\/my', 'acf_tooltip_position_my');\n?&gt;\n<\/code><\/pre>\n\n<h4>Position in relation to the tooltip icon<\/h4>\n\n<pre><code>&lt;?php\nfunction acf_tooltip_position_at() {\n    $position_at = 'center right';\n\n    return $position_at;\n}\nadd_filter('acf\/tooltip\/position\/at', 'acf_tooltip_position_at');\n?&gt;\n<\/code><\/pre>\n\n<p>Check out the <a href=\"http:\/\/qtip2.com\/demos\/\">qTip demo site<\/a> to find your perfect positioning.<\/p>\n\n<h4>Apply tooltips only to fields with specific class<\/h4>\n\n<pre><code>&lt;?php\nfunction acf_tooltip_class() {\n    $class = 'with__tooltip'; \/\/ edit this to your prefered class name\n\n    return $class;\n}\nadd_filter('acf\/tooltip\/class\/only', 'acf_tooltip_class');\n?&gt;\n<\/code><\/pre>\n\n<p>Add the class to the fields where you want to show tooltips.<\/p>\n\n<h4>Exclude tooltips on fields with specific class<\/h4>\n\n<pre><code>&lt;?php\nfunction acf_tooltip_class_exclude() {\n    $class = 'no__tooltip'; \/\/ edit this to your prefered class name\n\n    return $class;\n}\nadd_filter('acf\/tooltip\/class\/exclude', 'acf_tooltip_class_exclude');\n?&gt;\n<\/code><\/pre>\n\n<p>Add the class to the fields where you <em>don't<\/em> want to show tooltips.<\/p>\n\n<h4>Add tooltips to the Field Editor<\/h4>\n\n<p>With this filter, you can specify whether the instructions in the Field Editor are displayed as tooltips as well. By default, the instructions are displayed.<\/p>\n\n<pre><code>&lt;?php\nadd_filter('acf\/tooltip\/fieldeditor', '__return_true');\n?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>acf-tooltip<\/code> folder to your <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Done!<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>v1.2.5<\/h4>\n\n<ul>\n<li>Fixed PHP8 compatibilty<\/li>\n<\/ul>\n\n<h4>v1.2.2<\/h4>\n\n<ul>\n<li>Fixed compatibilty error of 1.2.1 update if ACF is &lt; 5.7.0<\/li>\n<\/ul>\n\n<h4>v1.2.1<\/h4>\n\n<ul>\n<li>Fixed <a href=\"https:\/\/wordpress.org\/support\/topic\/white-space-where-instructions-would-be-2\">White-space bug<\/a><\/li>\n<\/ul>\n\n<h4>v1.2.0<\/h4>\n\n<ul>\n<li>Tooltip is no longer hidden on hover<\/li>\n<\/ul>\n\n<h4>v1.1.0<\/h4>\n\n<ul>\n<li>Changed class name to prevent future conflicts with ACF<\/li>\n<\/ul>\n\n<h4>v1.0.0<\/h4>\n\n<ul>\n<li>Initial release of this plugin, tested and stable.<\/li>\n<\/ul>","raw_excerpt":"Displays ACF field instructions as tooltips","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/55151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=55151"}],"author":[{"embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tmconnect"}],"wp:attachment":[{"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=55151"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=55151"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=55151"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=55151"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=55151"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=55151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}