Amanda Sparling
Amanda Sparling

Reputation: 21

Add special Character to All Wordpress Titles

Is there a way to force a "#" sign to automatically be added to the beginning of all wordpress post titles?

I know you can force it to be capitalized or lowercase, etc.. but can you add a special character or word to the beginning of them all?

Thanks!

Upvotes: 2

Views: 1862

Answers (2)

Rochester Oliveira
Rochester Oliveira

Reputation: 1483

I think amanda was talking about all titles, not online browser's title..

You could use this function as a plugin, or in your functions.php page:

add_filter('the_title', function($title) { return '#'. $title;})

Upvotes: 2

powtac
powtac

Reputation: 41040

In your template folder search for the header.php file and then inside this file search for the <title> tag.

Now add a # right after the <title> and it will occur on all pages.

Upvotes: 0

Related Questions