Driezzie
Member
Posted 5 months ago #
Hi,
In one of my previous used themes I edited a .php file or something so my website's name did not show in the browserbar.
So normally it would be : Title of a cool article | This is my website's name !
Now it only shows : Title of a cool article
How do I get my website's name back after every article ?
Kind regards
You'll need to edit your themes header.php file. In between the <title> tags, replace whatever is there with this:
<?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?>
This will show the title of the post plus the blog name.
Driezzie
Member
Posted 5 months ago #
It does not work.
I'm guessing I erased something in the wordpress files itself because it happens with every theme I activate. It has been a long time and I can remember which .php it was.
If you edited core WordPress files, then I'd re-upload all those files and see if it works. You can find instructions on how to do that here.
Driezzie
Member
Posted 5 months ago #
Just did it, still not working.
Seems like it's only with single posts. Not with archive etc.
Okay the only other things I can think of are either custom functions you've added to functions.php, that filter the title, or a plugin that is interfering with the title. I know most SEO plugins will try and do things with the title, and I'm sure there are other plugins that do the same. Some themes will do the same thing. So I'd do the basic testing of disabling plugins and switching to the default theme and see if that fixes it.
Driezzie
Member
Posted 5 months ago #
could it have something to do with the post-template.php located in the WP-includes folder ?