How to add a prompt box to the editing background of WordPress
This article mainly introduces how to add a prompt box to the editing background of WordPress, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.
WordPress 3.5 adds a new prompt box feature that allows you to create a prompt box and point to any element, such as the following example:
How to create a prompt box like this.
You first need to add a script to the prompt box so that you can use the JS method of the prompt box.
/ / Mount prompt box script function Bing_admin_pointer_enqueue_scripts () {wp_enqueue_style ('wp-pointer'); wp_enqueue_script (' wp-pointer');} add_action ('admin_enqueue_scripts',' Bing_admin_pointer_enqueue_scripts')
Then use the pointer () method to create a simple prompt box:
/ * * WordPress background add prompt box * http://www.endskin.com/admin-help-box/*/function Bing_add_pointer_scripts () {$content = 'Please set theme'; $content. ='
Please make a simple configuration for the new theme! ;? > / /