Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you have the "Markup overrides" Extension enabled, and tick the "Remove the frontpage title" checkbox, that setting has no effect. The title of the frontpage node is still displayed, both in the HTML <head>
and <body>
.
Comment | File | Size | Author |
---|---|---|---|
#5 | adaptivetheme_2558779-5.patch | 839 bytes | roball |
Comments
Comment #2
roball CreditAttribution: roball commentedComment #3
roball CreditAttribution: roball commentedThe attached patch against the 7.x-3.x branch fixes this bug.
$vars['title'] = '';
has to be replaced by$vars['node']->title = '';
to remove the title from the body.drupal_set_title('');
must be added to also remove it from the head.Comment #4
Jeff Burnz CreditAttribution: Jeff Burnz commentedI think you are asking for a feature - basically you must have set a node as the front page, correct? I think thats fine and we probably should account for that option since its pretty common.
Comment #5
roball CreditAttribution: roball commentedIt turned out that removing the title from the body does work using the current code
$vars['title'] = '';
for some AT sub themes, such as Mix and Match 7.x-2.1, while it does NOT work for other AT sub themes, such as AT Commerce 7.x-3.1. The latter needs the code$vars['node']->title = '';
instead. Thus, both lines of code should be included.Attached is the updated patch that has both of these lines included.
Comment #6
roball CreditAttribution: roball commentedJeff, any change to get this in?
Comment #8
Jeff Burnz CreditAttribution: Jeff Burnz commentedComment #9
lamp5So, after update to 7.x-3 i have got a warning
Warning: Creating default object from empty value in adaptivetheme_process_page() (line 91 z /sites/all/themes/adaptivetheme/at_core/inc/process.inc).
My frontpage is views page.
Comment #10
lamp5Comment #11
Jeff Burnz CreditAttribution: Jeff Burnz commentedreplace line 91 with this:
BTW, "Needs review" is for reviewing patches, if you set that I think theres a patch to review.
Comment #12
Jeff Burnz CreditAttribution: Jeff Burnz commentedAnother issue was opened with the bug in #9, I've pushed the fix and released a new version, my apologies for the oversight.
Comment #13
roball CreditAttribution: roball commentedThank you for committing the fix!