Title filter in function.php
-
Hello,
I am using quickchic theme for my site. Title showing like “Theme Preview >> Worth A Thousand Words” but I would like to change title as “Worth A Thousand Words << Theme Preview”.
Below code in theme functions.php
/* Title filter */
function quick_title( $title ) {
// Get the Site Name
$site_name = get_bloginfo( ‘name’ );
// Prepend it to the default output
$filtered_title = $site_name . $title;
// Return the modified title
return $filtered_title;
}
add_filter( ‘wp_title’, ‘quick_title’);
Is there any modifications to do with this code for title change.
Please provide your valuable suggestions on this.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Title filter in function.php’ is closed to new replies.