SLIDE-1-TITLE-HERE

Replace these every slider sentences with your featured post descriptions.Go to Blogger edit html and find these sentences.Now replace these with your own descriptions.This theme is Bloggerized by Lasantha - Premiumbloggertemplates.com[...]

SLIDE-2-TITLE-HERE

Replace these every slider sentences with your featured post descriptions.Go to Blogger edit html and find these sentences.Now replace these with your own descriptions.This theme is Bloggerized by Lasantha - Premiumbloggertemplates.com[...]

SLIDE-3-TITLE-HERE

Replace these every slider sentences with your featured post descriptions.Go to Blogger edit html and find these sentences.Now replace these with your own descriptions.This theme is Bloggerized by Lasantha - Premiumbloggertemplates.com[...]

If you are going [...]

SLIDE-4-TITLE-HERE

Replace these every slider sentences with your featured post descriptions.Go to Blogger edit html and find these sentences.Now replace these with your own descriptions.This theme is Bloggerized by Lasantha - Premiumbloggertemplates.com[...]

SLIDE-5-TITLE-HERE

Replace these every slider sentences with your featured post descriptions.Go to Blogger edit html and find these sentences.Now replace these with your own descriptions.This theme is Bloggerized by Lasantha - Premiumbloggertemplates.com[...]

Mostrando entradas con la etiqueta texto Privado. Mostrar todas las entradas
Mostrando entradas con la etiqueta texto Privado. Mostrar todas las entradas

martes, 8 de noviembre de 2011

Cambiar el texto Privado y Protegido en las entradas en wordpress


WordPress nos permite definir entradas como privadas y protegidas. Es algo tan fácil como elegir la opción de visibilidad en el editor de entradas.

Ahora bien, no siempre el texto por defecto nos gusta o es apropiado para nuestro sitio, y si no queremos cambiar totalmente el archivo de traducción, podemos modificar esos textos que anteceden a estos tipos de entrada fácilmente.
Como ya aprendimos a quitar la leyenda de Privado y Protegido, ahora vamos a aprender a modificarla. Lo único que tenemos que hacer es lo siguiente …

Cambiar el prefijo “Privado”

Añadimos el siguiente código al fichero functions.php del tema activo:
function change_private_title_prefix() {
    return 'Solo para suscriptores: %s';
}
add_filter('private_title_format', 'change_private_title_prefix');

Cambiar el prefijo “Protegido”

Lo mismo, añadimos este código al archivo functions.php del tema que tengamos activo:
function change_protected_title_prefix() {
    return 'Secreto: %s';
}
add_filter('protected_title_format', 'change_protected_title_prefix');

Luego pones el texto que más te guste también aquí.

By Portal de Peru with 1 comment

    • Popular
    • Categories
    • Archives