I have a node assigned to the front page (so FP is /node/1). The page_title settings have no effect and the page title simply defaults to the site name. I've tried setting the page title for the node in question as well as filling in the front page box on the page_title settings page, using both tokens and plain text and I can never get it to change.
I'm using the waffles theme, based on acquia_marina.
Comments
Comment #1
nicholasthompsonIt appears the Acquia Marina theme (and therefore Waffles) play about with the Page Title in the template.php... I'll have to submit a patch so that gets bypassed if Page Title is installed...
I've set this to "Wont Fix" mainly because there is a "cant fix" ;-)
Comment #2
ergophobe commentedThanks - I've been trying to trace this and basically found the same thing - page-title returns the correct title, but it has no effect when using this theme.
Comment #3
ergophobe commentedOkay, I commented out the parts of Acquia that modify page title. Strange though b/c in theory it checks to see whether or not page_title is active and shouldn't overwrite custom titles (it works correctly with nodewords).
Comment #4
arax28 commentedSame bug found with Zen 1.11.2.1 theme.
Comment #5
jazfx commentedFound that you can edit this from admin/content/page_title. Should be worked into the node edit area.
Comment #6
Anonymous (not verified) commentedReopening. This is not a theme problem (at least, it isn't in 6.x.2.3). Changing to a core theme does not solve it.
The problem is that the code in page_title_page_get_title() says (paraphrased):
if frontpage {
use frontpage settings
} else {
use node-type settings
}
So the front page settings always trump all else. It's easy to solve by taking out the "else".
The question is, should node-type settings override frontpage settings or not?
(Note in the latest dev version, I the implementation is different, but the outcome is the same. See: page_title_page_title_pattern_alter in page_title.page_title.inc).
Comment #7
Anonymous (not verified) commentedIt's just been pointed out to me that you can also solve this by removing the default configuration in "Frontpage Global" settings.
Closing again. *Blush*
Comment #8
Oceanman commentedI found this thread when I was having a problem with my titles showing on the home page. My solution was found when I put the correct token in the Frontpage.
Go to this page admin/settings/page-title and there you can set the token for the "Frontpage" and I added [page-title] and it worked for each of my 4 custom (different language) home pages.
Comment #9
justinlevi commentedI ran into this issue but it's pretty easy to fix. Most likely the override is happening in template.php in the THEME_preprocess_html function so just do a search for 'head_title' and comment out any line that is setting the title.
example:
Comment #10
damonlevine commentedNone of what's mentioned above actually fixes the issue
Comment #11
BeaPower commentedI am also having the same problem, any fix?
Comment #12
BeaPower commented@justinlevi, Im using the bartik theme. How do I change?
Comment #13
BeaPower commentedsame here
Comment #14
Darshan4389 commentedI was not able to change the front page title of my drupal 8 site
document.title="new title";I have done it by Jquery, and used the following code in the front page twig file.
It worked for me