How to change the wordpress blog title in php?

4

I'm in the final stages of developing my blog in wordpress and a few months ago, when I started developing I put a título , but after a lot of research I decided to change it, because I found another similar one. mine is unique - so I decided to put another title.

I want to change the title that is next to the favicon side, that is, the tag <title>

Initially I changed the Painel de Configurações / Geral / Título do Site

The panel shows that it has changed, but when I press F5 , it continues with the previous title.

  • I also deleted browser history because of cache , but it did not work.

  • I tested it on Firefox , now I'm testing on Chrome , but the title remains the same.

  • I tried to search the file themes / o meu tema / header.php the tag <title> , but there is no such tag in my header .

  • I tried to write a title to overwrite what already exists, but it also did not work.

I searched for index , but index called header .

Does anyone know where else I can find title in php of wordpress to change? Because painel is not changing at all.

Thank you in advance.

    
asked by anonymous 19.12.2015 / 01:28

1 answer

4

You should not have found the tag <title> in header.php because it probably should be implemented through <?php wp_head(); ?> .

If you search the file header.php within the <head> tag, you will most likely find this syntax - <?php wp_head(); ?> , which is a function implemented in functions.php responsible for implementing <title> , <style> etc.

If this is the case, to change the title simply go to:

Dashboard => Settings => General => Site Title

Change the site title to the new name you want for the site.

Editing

Since you're using a Cache Plugin and SEO (All in One SEO Pack), you also have to make changes to the new SEO plugin and reset / delete the Cache Plugin cache.

To make title changes to the SEO Plugin, navigate to:

All in One SEO Pack => General Settings => Home Page Settings => Home Title:

or by accessing the link: http://meusite.com/wp-admin/admin.php?page=all-in-one-seo-pack%2Faioseop_class.php%2F#aiosp_home_metabox and change the title of Home Title: to the new title you want to define. The use of this plugin will replace the title of the site ( <title> ), by the text / title that you define here.

  

(I personally tested it).

And then you need to delete or reset the Cache Plugin cache for the updates to take effect.

    
19.12.2015 / 02:08