WP_TITLE
-
Estou com problema em colocar o título na minha pagina…. não estou sabendo como colocar…. o que está no header.php essa forma:
<?php wp_title(‘|’, true, ‘right’); ?>
E no functions.php está dessa forma:
<?php
/**
* Creates a nicely formatted and more specific title element text
* for output in head of document, based on current view.
*
* @param string $title Default title text for current view.
* @param string $sep Optional separator.
* @return string Filtered title.
*/
function wpdocs_filter_wp_title( $title, $sep ) {
global $paged, $page;if ( is_feed() )
return $title;// Add the site name.
$title .= get_bloginfo( ‘name’ );// Add the site description for the home/front page.
$site_description = get_bloginfo( ‘description’, ‘display’ );
if ( $site_description && ( is_home() || is_front_page() ) )
$title = “$title $sep $site_description”;// Add a page number if necessary.
if ( $paged >= 2 || $page >= 2 )
$title = “$title $sep ” . sprintf( __( ‘Page %s’, ‘twentytwelve’ ), max( $paged, $page ) );return $title;
}
add_filter( ‘wp_title’, ‘wpdocs_filter_wp_title’, 10, 2 );E MESMO ASSIM NÃO ESTÁ FUNCIONANDO.
- O tópico ‘WP_TITLE’ está fechado para novas respostas.