I uploaded a custom logo through the Bartik settings UI and it shows on the live site, but not in preview. I'm using Seven for admin. It appears that code in core/themes/bartik/color/color.inc (lines 9-10) has no effect.

// Put the logo path into JavaScript for the live preview.

$js_attached['#attached']['drupalSettings']['color']['logo'] = theme_get_setting('logo.url', 'bartik');
drupal_render($js_attached);

When you look at the source it seems the code doesn't add to drupalSettings.colorl.logo at /admin/appearance/settings/bartik

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

corbacho’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
523 bytes

Good catch mermentau!

I can replicate this bug. After uploading a custom logo, the Preview area doesn't show the custom logo, it shows always the druplicon, the Bartik default logo. Patch attached

Replacing drupal_render with drupal_process_attached

corbacho’s picture

Issue summary: View changes

.

balagan’s picture

Status: Needs review » Reviewed & tested by the community

Patch is working fine. I had some hard time working on its duplicate issue, I think the https://www.drupal.org/theme-guide/8/assets page should be updated with information regarding drupal_process_attached()

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Themes can't have tests :( This issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed a24a858 and pushed to 8.0.x. Thanks!

  • alexpott committed a24a858 on 8.0.x
    Issue #2396983 by corbacho: Header Logo with Bartik won't change in...
balagan’s picture

I have opened an issue for the theme system: https://www.drupal.org/node/2406465

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.