Problem/Motivation
When attempting to manage layout with custom fields, I would like to display the field labels using the inline option, but using any option other than "hidden" or "visually hidden" results in the label displaying above the field.
Steps to reproduce
Install Commerce Kickstart 3.x. and create customised versions of "physical products" supplied by the templates.
When managing display, select "inline" for field labels, the label will display above.
Or:
1. Install Commerce Kickstart 3.x. demo site with demo products.
2. Edit an existing product, the example I used is "White & Wood Chair"
![]()
Resulting in this:
![]()
Selecting the "above" option has the same result. It is possible to hide the labels again using the settings
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | Screenshot 2025-03-31 204723.jpg | 33.43 KB | niki v |
| #9 | Screenshot 2025-03-31 205115.jpg | 34.07 KB | niki v |
| Screenshot_2023-04-29_203515.png | 237.85 KB | niki v | |
| Screenshot_2023-04-29_203424.png | 54.21 KB | niki v |
Issue fork belgrade-3357294
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
Comment #2
docevl commentedAnyone working on this issue? I would like to have some elements inline while others above. It does not matter how I set this in the Manage Display settings it will ALWAYS be above.
Comment #4
majmunbog commentedComment #6
majmunbog commented@docevl I’ve opened up an MR to address this issue. Let me know if it works.
Comment #7
niki v commentedHi @majumbog
I updated to Belgrade 2.1.0 on an older site running Drupal 10 and tested but there was no change.
I then made 2 local installs of the latest Commerce Kickstart: one with the content demo, one without, but I couldn't get the fields to display inline in either instance
Comment #8
majmunbog commentedThanks for testing, @niki v! The issue is currently in review, so the fix isn’t available in the latest release yet. You can test this by cloning
git@git.drupal.org:issue/belgrade-3357294.git.Comment #9
niki v commentedThanks, I got confused. I've tested the new code and it works in both D10 and D11 test versions and makes the field display compact, as desired, the the only issue now is that the field label is now plain text, please see attached screenshots:
Before:

After:

Comment #10
majmunbog commented@niki v the code is updated, I've added a utility class to "bold" the labels.
Comment #11
niki v commentedThank you! I tested it on all my local sites and it's working as intended.
Comment #12
majmunbog commentedComment #13
docevl commentedI can confirm the change worked also now, thank you.
Comment #15
majmunbog commented