Problem/Motivation

With Olivero, if a slogan is set and the branding block is configured to show the slogan, the slogan should be displayed on the branding block. But it's not.

Steps to reproduce

1. Install Drupal 10.1.x-dev version.
2. Go to "Configuration"->Basic Site Setting-> Add Site Slogan->Save.
3. Go to Homepage and Click on the Site branding "Configure Block option and enable site slogan checkbox -> Save Block
4. Go to Homepage and observe the slogan not displayed in the site branding block.

Proposed resolution

Site slogan should be displayed in site branding block.

Remaining tasks

write tests

User interface changes

Site slogan should be displayed on Site branding block
site slogan

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#140 After slogan.png92.48 KBsagarmohite0031
#140 Before Slogan.png76.69 KBsagarmohite0031
#133 site-branding.png129.26 KBahsannazir
#132 olivero-fixes.png53.14 KBtirupati_singh
#131 Screenshot 2025-03-03 at 12.17.00 PM.png158.51 KBandy-blum
#129 Screenshot from 2024-12-16 18-01-49.png320.41 KBsourav_paul
#129 Screenshot from 2024-12-16 17-58-51.png200.42 KBsourav_paul
#128 slogan_only.png72.38 KBahsannazir
#128 slogna_logo.png84.84 KBahsannazir
#128 slogan_w_name.png75.52 KBahsannazir
#128 slogan_w_logo_name.png89.28 KBahsannazir
#126 site slogan Error.png13.4 KBsagarmohite0031
#125 Screenshot from 2024-11-21 16-04-47.png217.28 KBsourav_paul
#123 3188136-nr-bot.txt2.72 KBneeds-review-queue-bot
#122 site-slogan_after-fixes_1.png98.49 KBtirupati_singh
#122 site-slogan_after-fixes_block-config.png108.31 KBtirupati_singh
#122 site-sogan_after-fixes.png89.66 KBtirupati_singh
#120 OliveroSloganFixed.png116.65 KBito78x
#118 site-slogan-3188136-118.png161.69 KBchandansha
#117 slogan.png130.42 KBahsannazir
#116 Screenshot from 2024-07-15 10-14-21.png54.79 KBtirupati_singh
#114 Screenshot from 2024-07-13 13-27-40.png149.59 KBriddhi.addweb
#114 Screenshot from 2024-07-13 13-27-19.png158.13 KBriddhi.addweb
#112 after-fix-spacing-issue.png79.15 KBtirupati_singh
#112 after-patch-spacing-issue.png81.26 KBtirupati_singh
#112 after-slogan.png121.29 KBtirupati_singh
#112 before-slogan.png94.31 KBtirupati_singh
#107 After-patch-Site-slogan.png76.06 KBmithun s
#107 Before-Site-slogan-checked.png72.38 KBmithun s
#106 Screenshot from 2024-05-14 19-49-54.png180.83 KBdivya.sejekan
#106 d-11LogoDisabled.png130.29 KBdivya.sejekan
#106 AfterFixD-11.png151.3 KBdivya.sejekan
#106 logoDisabled.png170.87 KBdivya.sejekan
#106 afterFix10.2.png191.55 KBdivya.sejekan
#105 settings.png53.65 KBarunkumark
#104 after-patch-1.png483.51 KBarunkumark
#104 after-patch.png372.96 KBarunkumark
#104 before-patch.png308.04 KBarunkumark
#98 Home___Drupal.png228.22 KBmherchel
#88 Screenshot 2024-04-27 at 14.12.38.png123.59 KByevko
#88 Screenshot 2024-04-27 at 14.08.20.png116.27 KByevko
#88 Screenshot 2024-04-27 at 14.07.47.png179.58 KByevko
#88 Screenshot 2024-04-27 at 13.38.53.png180.35 KByevko
#88 Screenshot 2024-04-27 at 13.37.17.png175.13 KByevko
#80 Screenshot at Jan 24 12-41-20.png643.28 KBshweta__sharma
#79 large title.png651.03 KBhamid.ali
#78 small title.png507.73 KBhamid.ali
#70 Screenshot 2023-03-24 at 6.18.27 PM.png292.82 KBrinku jacob 13
#70 Screenshot 2023-03-24 at 6.17.24 PM.png326.23 KBrinku jacob 13
#60 After patch - slogan cut off.png201.69 KBdeepalij
#60 Before patch - slogan.png180.23 KBdeepalij
#59 #54 patch .png53.5 KBredseujac
#57 Before patch.png43.89 KBBushra Shaikh
#56 After Patch.png25.51 KBprasanth_kp
#56 Before Patch.png26.24 KBprasanth_kp
#54 3188136-54.patch1.93 KBbhanu951
#53 3188136-53.patch1.93 KBameymudras
#52 3188136-52.patch1.93 KBameymudras
#46 after-3188136.png1.24 MBHarish1688
#46 before-3188136.png109.21 KBHarish1688
#44 after.png239.72 KBmherchel
#44 before.png211.05 KBmherchel
#41 After Patch.png361.24 KBnikhilraut
#41 Before patch.png368.24 KBnikhilraut
#36 After Patch 3188136 Slogan.png771.51 KBchetanbharambe
#36 Before Patch 3188136 Slogan.png555.95 KBchetanbharambe
#36 Before Patch 3188136.png322.34 KBchetanbharambe
#34 After_patch_3188136.png742.16 KBAgnesh Tank
#34 Before_patch_3188136.png778.36 KBAgnesh Tank
#32 wo_slogan.png76.62 KBguilhermevp
#31 Screenshot from 2021-06-23 11-54-23.png132.44 KBmarcusvsouza
#31 Screenshot from 2021-06-23 11-54-48.png49.67 KBmarcusvsouza
#30 3188136-after-fix.png33.35 KBindrajithkb
#30 3188136-without-slogan.png23.13 KBindrajithkb
#27 Olivero_Theme_Demonstration.png188.15 KBmherchel
#26 slogan.png161.8 KBmherchel
#24 after.png106.78 KBrinku jacob 13
#24 before.png105.18 KBrinku jacob 13
#23 longer slogan.png84.97 KBguilhermevp
#23 slogan.png32.19 KBguilhermevp
#23 no-slogan.png26.44 KBguilhermevp
#22 After patch slogan font size.png91.03 KBmanojithape
#22 After patch screenshot.png159.95 KBmanojithape
#22 Before patch screenshot.png118.97 KBmanojithape
#21 after.png42.82 KBakhildev.cs
#21 before.png118.54 KBakhildev.cs
#19 Screen Shot 2021-04-03 at 5.26.30 PM.png497.52 KBemofsnead
#17 Screenshot 2021-03-26 at 10.28.47.png71.3 KBgauravvvv
#17 3188136-17.patch1.68 KBgauravvvv
#14 after-patch.png131 KBbhumikavarshney
#14 Before-patch.png102.06 KBbhumikavarshney
#13 3188136_after.png345.37 KBhinal05
#13 3188136_before.png308.36 KBhinal05
#12 interdiff_3-11.txt735 bytesgauravvvv
#11 Screenshot 2021-03-12 at 10.33.25.png84.51 KBgauravvvv
#11 3188136-11.patch689 bytesgauravvvv
#10 After_apply_patch_site_slogan.png27.83 KBvikashsoni
#10 Before_patch_not_site_slogan.png17.92 KBvikashsoni
#5 slogan-3.png235.21 KBclaudiu.cristea
#3 3188136-3.patch1.99 KBclaudiu.cristea
#3 3188136-3.interdiff.txt621 bytesclaudiu.cristea
olivero-branding-block-slogan.patch1.38 KBclaudiu.cristea

Issue fork drupal-3188136

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

claudiu.cristea created an issue. See original summary.

claudiu.cristea’s picture

Title: The site slogan don't show with Olivero » The site slogan doesn't show with Olivero
claudiu.cristea’s picture

Status: Active » Needs review
StatusFileSize
new621 bytes
new1.99 KB

This patch is fixing the template. However, there is still the CSS to be fixed and that I would let someone form the frontend team to do.

mherchel’s picture

Status: Needs review » Postponed

This is something that we discussed during the design phase, and we couldn't find a good solution, so it was intentionally omitted. I'll leave this open for now, because I want to see if more people are missing this and would find it useful. If that turns out to be the case, we'll need some designs before we can implement the styling.

The code in #3 looks great, but I'm setting this to postponed for now and will wait to see if others are interested. Good catch!

claudiu.cristea’s picture

Issue summary: View changes
StatusFileSize
new235.21 KB

@mherchel, I'm building a very simple blog site. As the 'slogan' option exists and "slogan" is something the Drupal provides in its core as config, I'm expecting that every core theme should provide support for that. Probably, there are some aesthetic reasons not to support that but I've created a subtheme and override Olivero and got something that doesn't look so bad.

kgaut’s picture

I found odd too that the slogan was not showing !

I can confirm that the patch works as espected, even if a bit of CSS to get a render similar to #5 would be a good addition.

emofsnead’s picture

On the question of if the "Slogan" is necessary, YES...ABSOLUTELY.

I work with a Chicago Ad Agency who does a lot of site creative. A logo, a brand/headline, and a Tagline/Slogan are pretty much a template for any site build in any application being built. Without it, I am stuck in terms of using Olivero and will return to Bootstrap Barrio and TWIG level programming to get what I want. Hate to see that happen because I really like what I see so far with Olivero.

claudiu.cristea’s picture

Status: Postponed » Needs work

The people have have spoken. Marking as needs work.

claudiu.cristea’s picture

Status: Needs work » Needs review

I fact is NR as it already has a patch with tests.

vikashsoni’s picture

Apply patch #5 and #3 working fine now the site slogan visible in Olivero theme but

site slogan and site name is coming in same row sharing screenshot

gauravvvv’s picture

StatusFileSize
new689 bytes
new84.51 KB

I have attached a patch and after patch screenshot for reference. The site name and slogan are on different lines now.

gauravvvv’s picture

StatusFileSize
new735 bytes

Attached interdiff for 3-11.

hinal05’s picture

StatusFileSize
new308.36 KB
new345.37 KB

Applied patch #11 and slogan will displayed in new line. Please check screenshots.
RTBC +1

bhumikavarshney’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new102.06 KB
new131 KB

Hi.
The patch in the comment#11 cleanly applies.
Need reporter to review once.
Thanks.

akshayadhav’s picture

The patch works well adding the slogan on new line.
But I think the slogan's font size should be smaller than the site name. As there is no design specification provided for slogan in the Figma design it would be great if Olivero team can confirm it.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 11: 3188136-11.patch, failed testing. View results

gauravvvv’s picture

StatusFileSize
new1.68 KB
new71.3 KB

I have decreased the font size of the slogan to 16px. Attached an after-patch screenshot for reference.
Needs a maintainer's review.

gauravvvv’s picture

Status: Needs work » Needs review
emofsnead’s picture

StatusFileSize
new497.52 KB

The screen shot in #17 looks pretty good in terms of proportions between Site Name and Slogan. I can tell you in my mock up getting ready to use Olivero with its release (custom theme under it), what the #17 screenshot shows is very close to what I have. I have my logo image set a little larger as the image itself, but have a transparent background so the total visible proportions are only slightly bigger than the #17 screenshot. I have a four word slogan rather than three, so it might feel a little tight out of the box. But as a starting point you pretty much nailed it and users can tweak CSS from there.

Working with HTML and some inline CSS on another front page region (social), that may be an area where you want to spend a little extra time in the documentation. I wanted a styled button that will call a page for multiple user input options. I wanted my "Add your own!" button to read horizontally while keeping the vertical RSS Feed you already have in the region. That took some doing to get the 'transform' to operate selectively on just the styled button block with its Node/URL call. Several tries twisted both. Some approaches impacted the 'Name/Logo' section retraction on scroll.

I included a screen shot that shows the larger logo, proportionate Site Name (missing slogan), and the node calling button block placed in the social region.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

akhildev.cs’s picture

StatusFileSize
new118.54 KB
new42.82 KB

hi govravmahlawat,
#17 patch applied 9.2.x-dev. I got an issue...

manojithape’s picture

StatusFileSize
new118.97 KB
new159.95 KB
new91.03 KB

Verified and tested patch#17 on the Drupal 9.3.x-dev version and Olivero 9.3.0-dev version. Patch applied successfully and looks good to me.

Testing Steps:

  1. Install Drupal 9.3.x-dev version.
  2. Go to Appearance -> Set Olivero theme as admin and default theme
  3. Go to "Configuration"->Basic Site Setting-> Add Site Slogan->Save.
  4. Go to Homepage and Click on the Site branding "Configure Block option and enable site slogan checkbox -> Save Block
  5. Go to Homepage and observe the slogan not displayed in the site branding block.
  6. Now apply the patch and clear the cache.
  7. Again go to the homepage and verify after the patch site slogan displayed with 16px size.

Testing Results:

After applying the patch site slogan displayed with 16px size.
Please refer attached Before patch and After patch images for reference.
We can move this ticket to RTBC.

guilhermevp’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new26.44 KB
new32.19 KB
new84.97 KB

Patch #17 work for me as well.

Created a slogan in configurations, checked it in the brand blog but didn't showed up.

1

After patch, slogan shows up and nicely.

2

Even a long slogan fits nicely.

3

I believe it can be moved to RTBC, of course it's up to maintainers but I believe it's simply enough functionality to have.

rinku jacob 13’s picture

StatusFileSize
new105.18 KB
new106.78 KB

Patch #17 applied successfully for drupal 9.3.x-dev. thank's @Gauravmahlawat.

larowlan’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs subsystem maintainer review

As maintainer of Olivero, I'd like @mherchel to explicitly +1 this

I'm removing issue credits for people who posted duplicate screenshots that didn't add anything new - thanks for your assistance, but if someone else has already pasted screenshots, and you're not moving the issue forward, they just add additional noise. If you disagree with my assessment, please comment as such.

mherchel’s picture

Status: Needs review » Needs work
Issue tags: -Needs subsystem maintainer review
StatusFileSize
new161.8 KB

This is broken when the site name exists, but the slogan doesn't.

mherchel’s picture

StatusFileSize
new188.15 KB
+++ b/core/themes/olivero/templates/block/block--system-branding-block.html.twig
@@ -26,6 +26,9 @@
       </div>

This div never closes if there is no site_slogan

Couple more tasks

  1. Decrease the line height. Somewhere around 18px works for me.
  2. Make the slogan span underneath the logo when the logo exists
  3. We'll need designer approval when all of this is done.

Indrajith KB made their first commit to this issue’s fork.

indrajithkb’s picture

Status: Needs work » Needs review
StatusFileSize
new23.13 KB
new33.35 KB

Hi @mherchel I have done the changes which you mentioned in #26 and #27

Attaching SS for #26:

image

#27

1. Added the line height to 18px
2. Done the slogan span underneath the logo

image

Please review the merge request !831

marcusvsouza’s picture

The MR !831 works fine with small and larger slogans.

guilhermevp’s picture

Issue tags: +Needs design review
StatusFileSize
new76.62 KB

Not moving to RTBC, still needs designer approval.

guilhermevp’s picture

Agnesh Tank’s picture

StatusFileSize
new778.36 KB
new742.16 KB

Verified and tested patch#17 on Olivero 9.3.0-dev version with 9.3.x-dev
Patch applied successfully and result is Acceptable.

Testing Steps:

  • Install Drupal 9.3.x-dev version.
  • Go to Appearance -> Set Olivero theme as admin and default theme
  • Go to "Configuration"->Basic Site Setting-> Add Site Slogan->Save.
  • Go to Homepage and Click on the Site branding "Configure Block option and enable site slogan checkbox -> Save Block
  • Go to Homepage and observe the slogan not displayed in the site branding block.
  • Now apply the patch and clear the cache.
  • Again go to the homepage and verify after the patch site slogan displayed with 16px size.
  • Verify the slogan displayed with 16px as font size.

Testing Output:
After applying the patch site slogan displayed properly along with 16px font size.Please refer attached Before patch and After patch images for reference. Hence moving this ticket to RTBC.

kostyashupenko made their first commit to this issue’s fork.

chetanbharambe’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new322.34 KB
new555.95 KB
new771.51 KB

Verified and tested merge request !831 - https://git.drupalcode.org/project/drupal/-/merge_requests/831.patch
Patch applied successfully and looks good to me.

Testing Steps:
# Goto: Appearance -> Apply Olivero theme
# Go to "Configuration"->Basic Site Setting-> Add Site Slogan->Save.
# Go to Homepage and Click on the Site branding "Configure Block option clicking on the pencil icon and enable site slogan checkbox -> Save Block
# Go to the Homepage and observe the slogan not displayed in the site branding block.
# Now apply the patch and clear the cache.
# Again go to the homepage and verify after the patch site slogan is displayed with 16px font size.

Expected Results:
# Site slogan should appear below your site name version.

Actual Results:
# Currently site slogan is not appearing below your site name version.

Please refer attached screenshots for the same.
Looks good to me.
Can be a move to RTBC.

lauriii’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs subsystem maintainer review

Moving back to needs review since based on #27, the design still needs review from one of the Olivero subsystem maintainers.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

nikhilraut’s picture

Assigned: Unassigned » nikhilraut
nikhilraut’s picture

Assigned: nikhilraut » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new368.24 KB
new361.24 KB

Verified and tested patch#17 on the Drupal 9.5.x-dev version and Olivero 9.5.0-dev version. Patch applied successfully.
Testing Steps:
1. Goto: Appearance -> Apply Olivero theme
2. Go to "Configuration"->Basic Site Setting-> Add Site Slogan->Save.
3. Go to Homepage and Click on the Site branding "Configure Block option clicking on the pencil icon and enable site slogan checkbox -> Save Block
4. Go to the Homepage and observe the slogan not displayed in the site branding block.
6. Now apply the patch and clear the cache.
7. Again go to the homepage and verify after the patch site slogan is displayed with 16px font size.

Expected Results:
Site slogan should appear below your site name

gauravvvv’s picture

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

As per #27 and #37 - the design still needs review from one of the Olivero subsystem maintainers.

mherchel’s picture

Issue tags: -Needs subsystem maintainer review
StatusFileSize
new211.05 KB
new239.72 KB

Thanks everyone for working on this. There are a couple things that need to be fixed:

1) MR needs to be rebased into 9.5.x
2) The site name changes position when the patch is applied (regardless if the site slogan is shown).
3) Code review incoming in the MR (likely tomorrow... it's getting late here)

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Harish1688’s picture

StatusFileSize
new109.21 KB
new1.24 MB

Tried the patch 3188136-11.patch with version 10.1 and it's working fine.
attached the screenshot.

Before applied the patch

  1. Go to "Configuration"->Basic Site Setting-> Add Site Slogan->Save.
  2. Go to Homepage and Click on the Site branding "Configure Block option clicking on the pencil icon and enable site slogan checkbox -> Save Block
  3. Now apply the patch and clear the cache.
  4. theme the slogan, according your need.

Bhanu951 made their first commit to this issue’s fork.

bhanu951’s picture

Can anyone with edit access pls update the target branch to 10.x on MR, so we can check meege status.

I re added the slogan test from #3 into MR.

redseujac’s picture

Still doesn't work in Drupal core version 10.0 official release.

cilefen’s picture

@redseujac

Why would it work? This issue is not completed.

gauravvvv’s picture

ameymudras’s picture

Status: Needs work » Needs review
StatusFileSize
new1.93 KB

I think we should use the flex-wrap property to render the slogan on the next line. Would it not be a much simpler solution than the MR? I have attached a patch for reference

ameymudras’s picture

StatusFileSize
new1.93 KB
bhanu951’s picture

StatusFileSize
new1.93 KB

Fix Cs from #53

Bushra Shaikh’s picture

Assigned: Unassigned » Bushra Shaikh
prasanth_kp’s picture

StatusFileSize
new26.24 KB
new25.51 KB

#54 applied successfully for drupal 10.1.x-dev

Bushra Shaikh’s picture

Assigned: Bushra Shaikh » Unassigned
StatusFileSize
new43.89 KB

I have verified patch#54 on drupal 10.1.x-dev version. Patch applied successfully and looks and also works fine.
The site slogan is displayed with the Olivero theme after applying the patch.
Refer to screenshots:
Can be moved to RTBC+1

RTBC+1

gauravvvv’s picture

Updating attributions

redseujac’s picture

StatusFileSize
new53.5 KB

Bushra Shaikh wrote in #57:

Refer to screenshots:

There's no screenshot 'after patch' and the screenshot 'after patch' in #56 seems to be the wrong one (no screenshot of branding block with slogan).

I have applied the patch #54 and it's working indeed, but in my opinion there's too much space between the end of the slogan text and the far right-hand side of the (colored) branding block (see screenshot above). Patch#17 has not that problem, but has other issues when the slogan is not selected to be shown in the branding block (see #26).

deepalij’s picture

StatusFileSize
new180.23 KB
new201.69 KB

Applied patch #54 on Drupal 10.1.x-dev with Olivero theme.
Patch applied cleanly

The slogan is displayed after applying the patch.
But if there is a logo (maybe of a bigger size) then the slogan is getting cut off from the bottom.
Refer to the attached SS
Before patch:
before

After patch:
after

bhanu951’s picture

Seems patch from MR in #48 is more better suited than patch from #54

redseujac’s picture

Bhanu951 wrote:

patch from #48 is more better suited

Where can we find that patch to test? #48 doesn't seem to contain a "patch" for us to test.

deepalij’s picture

@bhanu951, tried patch from MR #48.
Patch failed to apply on drupal 10.1.x-dev

Skipped patch 'core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php'.
Skipped patch 'core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php'.
Checking patch core/themes/olivero/css/components/header-site-branding.css...
error: while searching for:
  background: #fff;
}

.site-branding__inner {
  display: flex;
  align-items: center
}

.site-branding__inner a {
    text-decoration: none;
  }

@media (min-width: 75rem) {

[dir="ltr"] .site-branding__inner {

error: patch failed: core/themes/olivero/css/components/header-site-branding.css:124
error: core/themes/olivero/css/components/header-site-branding.css: patch does not apply
Checking patch core/themes/olivero/css/components/header-site-branding.pcss.css...
error: while searching for:
}

.site-branding__inner {
  display: flex;
  align-items: center;

  & a {
    text-decoration: none;
  }

  @media (--nav) {

error: patch failed: core/themes/olivero/css/components/header-site-branding.pcss.css:59
error: core/themes/olivero/css/components/header-site-branding.pcss.css: patch does not apply
Checking patch core/themes/olivero/templates/block/block--system-branding-block.html.twig...
error: while searching for:
{% set attributes = attributes.addClass('site-branding') %}
{% block content %}
  <div class="site-branding__inner">
    {% if site_logo %}
      <a href="{{ path('<front>') }}" rel="home" class="site-branding__logo">
        <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />
      </a>
    {% endif %}
    {% if site_name %}
      <div class="site-branding__text">
        <div class="site-branding__name">
          <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
        </div>
      </div>
    {% endif %}
  </div>
{% endblock %}

error: patch failed: core/themes/olivero/templates/block/block--system-branding-block.html.twig:16
error: core/themes/olivero/templates/block/block--system-branding-block.html.twig: patch does not apply
redseujac’s picture

Surely this is curious: in 2 years, no one has managed to fix this slogan problem (initial post more than 2 years ago) :-(

smustgrave’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs tests, +Needs issue summary update

This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

This will need a test case to show the issue.

Issue summary should be updated with proposed solution, seen several different attempts but what is going to be the path forward.

Screenshots should be added to the issue summary.

rinku jacob 13’s picture

Issue summary: View changes
rinku jacob 13’s picture

H i @smustgrave ,Issue summary updated. Please review.

rinku jacob 13’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Seems better! Think just need to determine which of the current solutions to move forward with for the tests

rinku jacob 13’s picture

Hi @smustgrave, when we use the logo supplied by the theme the slogans accurately displayed.
slogan
But when we use a custom logo(especially larger size custom logo) slogan was show as non-aligned. Need to work on this.
slogan non-aligned

jeyro’s picture

But shouldn't the slogan be just below the site name?

If there is a logo, or if there isn't a logo, the slogan should generally be below the site name (not the logo). Maybe I'm wrong, but I thought this was kind of standard procedure...

ressa’s picture

+1 for adding Slogan in Olivero.

To help keep this issue moving, maybe someone can update "Remaining tasks" in Issue Summary and outline which solutions are under consideration?

ravi kant’s picture

Issue solving for me when applying patch#54 and enabling the slogan from the "Site branding" block.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

gintass’s picture

@jeyro I agree, the slogan should be below the title and next to the logo, therefore I would change the code in this file /olivero/templates/block/block--system-branding-block.html.twig, so that 'site_slogan' is inside the 'site_name':

    {% if site_name %}
      <div class="site-branding__text">
        <div class="site-branding__name">
          <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
        </div>
            {% if site_slogan %}
              <div class="site-branding__slogan">{{ site_slogan }}</div>
            {% endif %}
      </div>
    {% endif %}
  </div>
{% endblock %}
jeyro’s picture

@gintass That worked for me, perfectly, much thanks!

For 10.1.1 updated patch #54 manually. Added contribution of @gintass, added a font-size: 1rem; and a font-style: italic; Works fine.

Can someone finalize this so that it gets into core?

freelylw’s picture

problem still in the latest 10.1.2, please advise the patch #54 is for the olivero or for the core ?

hamid.ali’s picture

StatusFileSize
new507.73 KB

I have verified patch#54 on Drupal 10.1.x-dev version. The patch was applied successfully and looks and works fine. But there should be a cap on the length of characters for the slogan. Since I tried to add as much length as I could for the slogan and after saving and checking the same it is breaking the layout into more the one line and also doesn't look good from the UI perspective. I am adding both the small title and large title SS.
small title
large title

hamid.ali’s picture

StatusFileSize
new651.03 KB
shweta__sharma’s picture

StatusFileSize
new643.28 KB

My thoughts on this - Site branding Block title which comes in a grey colour that is not completely visible. From a design perspective, it should be matched with the standard design which we are following for this theme.

image

kattekrab’s picture

I just spun up a very vanilla instance of Drupal with the lovely new Olivero theme enabled as default! Happy to find my rusty Drupal skillz got me all the way until this issue. I thought I was going mad about why I had enabled site slogan, but it just WOULD NOT display.

So I turned to a search engine and found this 3 year old bug.

I haven't through read the whole thread, or checked to see if the issue summary is up to date or not, but I can 100% confirm it was really frustrating to enable a feature and not be able to figure out why it doesn't work :)

Looks like there's working, tested patches here, so let's go with what we have here, and create a new issue for improvements like cap on length.

EDIT: The alternative is, "won't fix" and remove the feature instead.

skaught’s picture

Issue tags: +Novice

(: yes, core provides these 2 fields for input. The main questions then is:
->is this issue miss-categorized: is this a bug or a feature request?

- individual themes can choose to not use these fields. ie: perhaps some sites choose to use them as meta tag instead!!

mukesh-kumar3’s picture

Status: Needs work » Needs review

Slogan not displayed in the site branding block issue solving for me when applying patch#54 and enabling the slogan from the "Site branding" block. in drupal 10.1.x and in 10.2.x.

smustgrave’s picture

Status: Needs review » Needs work

Still will need test coverage.

YevKo made their first commit to this issue’s fork.

YevKo changed the visibility of the branch 11.x to hidden.

yevko’s picture

Hi,

https://git.drupalcode.org/project/drupal/-/merge_requests/7792

I have done a re-roll of the existing fork to 11.x first and then applied changes mentioned in this issue:

  • Slogan has been moved inside the 'site-branding__text' container, placed below the site name with the small gutter between. This setup works well with any type of logo, or without the logo.
  • Color of the slogan is the same as of the site name (white). The issue with the text color against grey or white backgrounds is reported separately https://www.drupal.org/project/drupal/issues/3443881

Screenshots in different setups:
no slogan

with default logo
no logo
rectangular logo
mobile

yevko’s picture

Status: Needs work » Needs review
Linh Le’s picture

Status: Needs review » Reviewed & tested by the community

Looks good with #89

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -Needs tests, -Needs issue summary update

I think we should move the test to \Drupal\FunctionalTests\Theme\OliveroTest - also I think we should have a +1 on the CSS / design elements from an Olivero maintainer. Will ping in Slack.

kostyashupenko’s picture

Status: Needs work » Needs review

I'm gonna mark it as Needs review since i've inserted few modifications

smustgrave changed the visibility of the branch 3188136-the-site-slogan to hidden.

smustgrave’s picture

Sounds like we need sub-maintainer sign off. Not sure about "design review" as we don't have designers (that I know of).

alexpott’s picture

@smustgrave - I pinged the Olivero maintainers in Slack - @kostyashupenko is a maintainer of Olivero :)

smustgrave’s picture

Sorry @kostyashupenko!

mherchel’s picture

Status: Needs review » Needs work

Getting close! Visually, this looks great, with the minor exception that there should be a gap between the logo and text.

The main issue is that there are two <a> tags, which would be a bit confusing for people using assistive technology. All of the text and image should be wrapped within one <a> tag, and elements should be added in that as needed.

The use of CSS grid on branding text is basic (although it works), when I mentioned this in #44, I was thinking to align the items within the <a> tag. I probably should have been a bit more specific.

mherchel’s picture

StatusFileSize
new228.22 KB

mradcliffe’s picture

Issue tags: -Novice

I am removing the Novice tag from this issue because it is not clear for a new contributor how to move the issue forward.

I’m using this documentation as a source: https://www.drupal.org/community/contributor-guide/task/triage-novice-is...

ahsannazir made their first commit to this issue’s fork.

ahsannazir’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Believe needs a rebase

ahsannazir’s picture

Status: Needs work » Needs review
arunkumark’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new308.04 KB
new372.96 KB
new483.51 KB

Reviewed the MR !7792 is resolving the issue. Attached screenshot after applying the MR.

Before applying the patch:
Before patch

After applying the patch:
After patch

Different logo and Long slogan
After patch

Ready for RTBC.

arunkumark’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new53.65 KB

Found an issue during the test. If the Logo is unchecked(Show only Sitename and Slogan), none of the details are showing.

Settings

Updated MR to resolve this issue as well.

divya.sejekan’s picture

StatusFileSize
new191.55 KB
new170.87 KB
new151.3 KB
new130.29 KB
new180.83 KB

Verified for Drupal - 10.2 . The slogan is visible now.
Verified with Drupal 11.x-dev .The Slogan is visible now
Verified with disabled logo . The slogan is visible

Steps to reproduce
1. Install Drupal.
2. Go to "Configuration"->Basic Site Setting-> Add Site Slogan->Save.
3. Go to Homepage and Click on the Site branding "Configure Block option and enable site slogan checkbox -> Save Block
4. Go to Homepage and observe the slogan not displayed in the site branding block.

But the patch has white space warning

mithun s’s picture

StatusFileSize
new72.38 KB
new76.06 KB

I have validated before MR that the slogan is not displaying on the UI for olivero theme.
Validated by switching to the branch and verified the slogan is visible/hidden as per the users choice and based on the block configuration. Attaching the screenshots for reference.

RTBC +1.

mithun s’s picture

Status: Needs review » Reviewed & tested by the community
mithun s’s picture

quietone’s picture

Status: Reviewed & tested by the community » Needs work

@Mithun S, Thanks for your interest in this issue. Testing of the latest MR and screenshots were already supplied in the comment before your work. The consequences of that are explained in this issue in comment #25. In the Drupal community we expect contributors to read all comments before making a contribution.

The testing in #106 does not account for the error case discovered in #105. Nor has there been a code review since that change. And surely the tests needs to be updated to include that situation. Back to needs work.

Tirupati_Singh made their first commit to this issue’s fork.

tirupati_singh’s picture

StatusFileSize
new94.31 KB
new121.29 KB
new81.26 KB
new79.15 KB

I've tested the MR!7792, the site slogan issue has been fixed and the font size for both Sitename and Site slogan is appearing perfectly. Found one issue for the spacing between the top site-branding region for mobile devices. On mobile devices there no space between the top of region and the site branding logo. Attaching screenshots of before and after for the fixes.

tirupati_singh’s picture

Status: Needs work » Needs review
riddhi.addweb’s picture

Status: Needs review » Needs work
StatusFileSize
new158.13 KB
new149.59 KB

I tried the MR7792, but it seems like it does not work for me, with and without the patch the issue looks the same. Attaching the SS for the same.

tirupati_singh’s picture

@riddhi.addweb, could you confirm whether you have enabled the option Site slogan under Site branding block configuration? If the Site slogan option has not been checked then only Site name will be visible, in order to make Site slogan also visible you'll have to check that Site slogan option.

tirupati_singh’s picture

StatusFileSize
new54.79 KB

Attaching the Site branding block configuration screenshot for your reference.

ahsannazir’s picture

Status: Needs work » Needs review
StatusFileSize
new130.42 KB

@riddhi.addweb Can you please follow the Steps to reproduce once again. i am able to see slogan . attaching screenshot

chandansha’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new161.69 KB

I have tested MR 7792. I can see the Slog.
I moved it to RTBC.
THANKS!!

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

I see that @mherchel noted the two a tag issue in #98 and #97 BUT this is an existing issue with the site branding block and in my mind requires a separate issue to discuss the usability concerns. Adding the site slogan is not part of that.

ito78x’s picture

StatusFileSize
new116.65 KB

to fix the bug, first correct the 3 files as OliveroSloganFixed.png
after Clear all caches at Configuration > Development > Performance
refresh the page

3 files:
block.block.olivero_site_branding.yml
block--system-branding-block.html.twig
header-site-branding.css

redseujac’s picture

@ito78x
It's working indeed only if site name and site slogan are selected, but unfortunately it doesn't work if site logo and site slogan are selected.

In that case only the slite logo is shown and the site slogan is not shown.

It also works when al 3 are selected: site name, site logo and site slogan, but in that case the site logo must not be to wide.

tirupati_singh’s picture

Status: Needs work » Needs review
StatusFileSize
new89.66 KB
new108.31 KB
new98.49 KB

Hi @redseujac @alexpott, I've fixed the site slogan issue while using the Olivero theme. Now the site slogan is being shown for all the cases when the site slogan, site name and site logo have been enable on site-branding block configuration for the theme. I'm attaching the screenshots of the fixes for the issue. Please review the MR changes.

Thanks!

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new2.72 KB

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

tirupati_singh’s picture

Status: Needs work » Needs review

Moving back to Needs Review as the mentioned error in the file 3188136-nr-bot.txt has been fixed by @Bhanu951.

sourav_paul’s picture

StatusFileSize
new217.28 KB

Tried to applied the patch but its giving error..

img

sagarmohite0031’s picture

StatusFileSize
new13.4 KB

Hello,
I also try to apply patch but getting error.
Attaching screenshots

arunkumark’s picture

Done the rebase, Now the MR passed, and hope it will apply to the latest version of the Drupal core.

ahsannazir’s picture

StatusFileSize
new89.28 KB
new75.52 KB
new84.84 KB
new72.38 KB

The changes in MR #127 are applied successfully.
Now, the slogan is visible in all the cases:

Show slogan only

Show slogan and name

Show slogan and logo

Show slogan with name and logo

sourav_paul’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new200.42 KB
new320.41 KB

I've retested the patch.
The patch applied cleanly on 11.x & it fixed the site slogan visibility issue..

Attaching ss:
img

img

Hence moving it to RTBC.

Thanks @arunkumark & @tirupati_singh

catch’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs subsystem maintainer review, +Needs product manager review

This still needs design review. Either from the Olivero team or from a product manager I think.

andy-blum’s picture

StatusFileSize
new158.51 KB

We're adding some gap between the site title & slogan, but there's currently none between the text of this block and the site logo. Can we add the same --sp0-5 between the image and the text as we have between the title & slogan?

tirupati_singh’s picture

StatusFileSize
new53.14 KB

Hi @andy-blum, I've added the gap between the site logo and site title & slogan. Attaching the screenshot of the after fixes for your reference. Please review the changes.

Thanks!

ahsannazir’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new129.26 KB

The slogan is visible if slogan text is added. Also the gap has been added between the logo and the text.

Hence moving it to RTBC

nod_ made their first commit to this issue’s fork.

nod_’s picture

Status: Reviewed & tested by the community » Needs work

Few things to fix still.

The spacing between the logo and title went from 0.75em to 0.5em, it should probably be fixed so that the spacing doesn't change.

Can someone open a follow-up issue to deal with the placement of the a tag as mentioned in #97, #98?

ahsannazir’s picture

Status: Needs work » Needs review
nod_’s picture

Status: Needs review » Needs work

There are still tabs in the twig file instead of spaces

tirupati_singh’s picture

Hi, I've fixed the indentation issue in the template file. Please review the changes. I'm keeping the issue status to Needs work as the pipeline is failing.

tirupati_singh’s picture

Status: Needs work » Needs review

Changing the issue status to Needs review as the pipeline is passing all tests.

sagarmohite0031’s picture

Assigned: Unassigned » sagarmohite0031
StatusFileSize
new76.69 KB
new92.48 KB

Hello,
Verified and Tested on Drupal 11,
MR applied successfully,
Working as expected

Steps to reproduce
1. Install Drupal 10.1.x-dev version.
2. Go to "Configuration"->Basic Site Setting-> Add Site Slogan->Save.
3. Go to Homepage and Click on the Site branding "Configure Block option and enable site slogan checkbox -> Save Block
4. Go to Homepage and observe the slogan not displayed in the site branding block.

Check attachments -
Moving this to RTBC

sagarmohite0031’s picture

Status: Needs review » Reviewed & tested by the community

  • nod_ committed 23301df6 on 11.x
    Issue #3188136 by ahsannazir, tirupati_singh, yevko, bhanu951,...
nod_’s picture

Status: Reviewed & tested by the community » Fixed

Committed 23301df and pushed to 11.x. Thanks!

Status: Fixed » Closed (fixed)

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