我最近升级到了3.3.1版,并注意到了一个不错的功能,它将对我们的非Wordpress精明客户非常有用-简要介绍了如何使用Wordpress。
我使用Yoast SEO插件已有很长时间了,他们添加了一个游览功能,当您单击下一步按钮时,它将浏览各种功能(请参见屏幕截图):
是否可以创建有关如何添加页面,帖子等并创建我们自己的帮助内容的Wordpress的自定义导览。
我有一个倾向于使用的标准插件集,因此导游(如果可能)将需要跳过标准的Wordpress设置以及所有其他插件。
更新:
我在网上挖了发现以下代码。这将创建一个一次性指针,您可以在其中放置自定义内容。唯一的问题是,每次重新加载时弹出窗口都会出现,即使它被关闭了(是否有办法提高其可用性?),而且它还是一个一次性窗口而不是游览。
只需使用Firebug查找要附加指针的div。
/*
Display custom WordPress Dashboard Pointers alerts
Usage: Modify the $pointer_content message to the message you wished displayed
*/
add_action('admin_enqueue_scripts', 'enqueue_custom_admin_scripts');
function enqueue_custom_admin_scripts() {
wp_enqueue_style('wp-pointer');
wp_enqueue_script('wp-pointer');
add_action('admin_print_footer_scripts', 'custom_print_footer_scripts' );
}
function custom_print_footer_scripts() {
$pointer_content = '<h3>The Works http://www.teamworksdesign.com</h3>';
$pointer_content .= '<p>Welcome to your custom WordPress installation. Please navigate to the settings page to change your site preferences</p>';
?>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready( function($) {
$('#menu-posts-events').pointer({
content: '<?php echo $pointer_content; ?>',
position: 'left',
close: function() {
// This function is fired when you click the close button
}
}).pointer('open');
});
//]]>
</script>
<?php
}