Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report