Descripción
This plugin allows the author of a post or page to hide the title and it’s containing HTML element from the single view ( is_singular() ).
Capturas
Instalación
- Upload the
hide-title
folder to the/wp-content/plugins/
directory - Activa el plugin a través del menú «Plugins» en WordPress
FAQ
- He actualizado a la versión 1.0.2 y el plugin ha dejado de funcionar. ¿Por qué?
-
It is possible that your theme does not have the wp_head function in it’s header.php file. In general all themes are suppose to have it, and version 1.0.2 looks for it to prevent adding bad code to the
<head>
area of the page. If you have access to your theme file simply add<?php wp_head(); ?>
to header.php just before the</head>
tag. If not, this plugin will no longer be compatible with your theme. - Hey! This plugin is hiding things I don’t want hidden!
-
By default this plugin looks for the
.entry-title
class and hides it. If it doesn’t find it it will look for anyh1
orh2
elements that contain the title and hide them instead. To change the default.entry-title
selector to something that makes more sense to you, add the following code to the functions.php file of your current theme:global $DojoDigitalHideTitle; // Be sure to replace ".your-selector" with your selector! $DojoDigitalHideTitle->set_selector('.your-selector');
As noted in the comments, you’ll need to replace the string
.your-selector
with the css selector you’d like hidden. It can be any valid css selector such ash1
,.myclass
,#myid
, etc. I recommend using a class or id to avoid accidentally hiding unforeseen elements. - I don’t want to edit my theme files, can’t you just add an option page?
-
I could, but I’d like to avoid adding Yet Another Options Page if I can. If enough people request it though, I’ll go ahead and bite the bullet.
- Who is the author of this plugin anyway?
-
Este plugin ha sido desarollado por Randall Runnels de Dojo Digital. En marzo del 2015, el plugin no era compatible con la última versión de WordPress. Al encontrar el problema, Brandom Kraft aporto la solución, pero no recibió respuesta. Contacto con el equipo de Plugins de WordPress.org con una oferta para asumir el desarrollo y actualizarlo. El equipo de plugins contacto y ninguno de los dos recibió la aprobación de Randall, no hizo caso en absoluto, o el correo electrónico rebotó.
Reseñas
Colaboradores y desarrolladores
«Hide Title» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
ColaboradoresTraduce «Hide Title» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
1.0.8
- Fixed Deletion Error
- Removed WP-Updates
- Added a body class of dojo-hide-title
1.0.6
- Tested New Update Functions for future releases
1.0.5
- Fixed Deletion Error
- Added WP-Updater Support
1.0.4
- Now compatible with latest versions of WordPress
- PHP 4 is no longer supported.
1.0.3
- Fixed a jQuery bug which prevented fallbacks in the case that the selector was not found.
1.0.2
- Added logic to flag when wp_head has run to prevent changes being made to the title in the >head< area.
- Fixed a bug that caused multiple meta field entries.
1.0.1
- Changed the jQuery to use a less brute force method of hiding the title.
- Added a set_selector() method to allow end-users to specify the css selector to hide.