Title in <head> is not working
Closed this issue · 7 comments
For a week, starting 03.10.2016, the title of the webpages (seen at the title of the tab, in the head of the html document) where not working properly and all the titles were “Global Alliance of Waste Pickers | globalrec.org”.
Weird, a445536 works in the dev server but not in production. Please @skotperez have a look!
Title tag must to be included: title
is a mandatory tag. In the other hand meta name="title"
is deprecated. meta name="description"
was duplicated.
Solved in eb61469.
The title tag was added in the functions.php
at a445536 and removed from the head. We must use one system or the other.
Having said this: with eb61469 the problem persists. I can see titles in dev, but not not in production, which still is "Global Alliance of Waste Pickers | globalrec.org” for all the pages.
Ups! I didn't check functions.php. I will fix it.
Maybe cache is playing too like in the menu issue...
I think it was related to a configuration of the WPML plugin, that somehow changes (maybe related to update of the plugin itself or something else).
So, it works now.
We have to be sure that "Translate the theme and plugins using WPML's String Translation" is checked.
Pending:
- review duplicated functions in functions.php and head
I have remove the code that built the title in header.php. So now it is not duplicated: 8acf6c1
Nevertheless the version of header.php file in production environment is not the last. It needs to be updated. Maybe we can find a protocol to update files in an easier and safer way.
Good idea.
We should be able to push from command line to the dev and the prod servers.
While we develop a protocol I'll update by sftp, once I've tested in dev.globalrec.org that things work. I've opened another issue for the protocol #37