Linux 软件免费装
Banner图

Toggle The Title

开发者 avner.komarow
更新时间 2014年4月18日 02:02
PHP版本: 3.0 及以上
WordPress版本: 3.6.1
版权: GPLv2 or later
版权网址: 版权信息

标签

toggle title simple hide wp remove titles

下载

1.1 1.2 1.3 1.4

详情介绍:

A plugin that will allow removing page titles per page. Only intended for pages (IE: no posts / other custom post types). Note: this plugin dose not simply hiding the title via css, it actually removes it which is much better seo wise.

安装:

  1. Upload and extract toggle-the-title.zip to the /wp-content/plugins/ toggle-the-title directory
  2. 通过WordPress的“插件”菜单激活插件
  3. go and edit any page you like - and you will find a check box (default is showing the title)
  4. You can enable auto-save in the setting menu (IE: toggling the title will automatically save the page)

屏幕截图:

  • The page edit screen.
  • The options screen.

升级注意事项:

1.4

常见问题:

menu items disappeared when toggling

update to 1.2 or higher.

it does not remove the title

you need to use the_title() or wp_title() or $post_id->post_title and so on just as long that you are getting the title via wp internal functions

i would like to totally remove the from the dom

You could do something like this:

  1. Add this function to your functions.php file on you current theme
'function return_page_title_html_block($post) { $is_page_title_active = get_post_meta($post->ID, $key = 'toggle_page_title', $single = true); if($is_page_title_active == '' || $is_page_title_active) return ' ' . $post->post_title . ''; return ' '; }' (without the tick marks of course)
  1. In your page.php file replace the title with the h1 tags to a call to echoing out the above function - print return_page_title_html_block($post);

更新日志:

1.4 1.3 1.2 1.1 1.0 -- Init --