Add special Character to All Wordpress Titles

1.8k views Asked by At

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!

2

There are 2 answers

0
powtac On

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.

2
Rochester Oliveira On

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;})