Title filter from function.php
-
Hello,
My site title showing like Blog Name >> Post Name, but I would like to change site title like Post Name << Blog Name or Post Name.
Below code in my 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’);
Please let me know any changes in above code.
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
Your site is not hosted on WordPress.COM and you are posting to the wrong support forum. This forum is only for support of sites hosted on WordPress.COM.
Your support questions must be posted to the correct support site for your software and that is here http://wordpress.ORG/support/
For more on the differences: http://support.wordpress.com/com-vs-org/
- The topic ‘Title filter from function.php’ is closed to new replies.