Get the App
SLTechnology News&Howtos  ›  Development  › 

How to add a prompt box to the editing background of WordPress

Shulou Source: shulou.com Published: 2022-06-03 11:07:09 11月15日 Update

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! ;? > / /

Tags: Tips background topic article element point script thing method configuration code value example interest function at the same time more friends knowledge editing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi Redmi macOS Microsoft