In my Content Type's display settings, I set the first and second fields to use an inline label. While I want the label inline, I also would like a line break after each field so that each appears on its own line. How can I add a line break?
I'm using Drupal 8 with Solr search and Search API. For now using the default theme. I am not sure where to look to make this change, whether this is simply a setting I've missing in the Manage Display, a customization to the theme, creating a view, or something else.
There's a link below to a OneDrive image that shows the problem. The content item includes a "By" field, "Description" field, and "Organization" field. There should be a line break after "Strauss" and another line break after "score."
Also, the "By:" label seems to be using a different style. Where can I adjust this so that it matches the the style of the field?
![]()
Comments
=-=
Scratch that.You haven't missed a configuration setting. You will need to inspect the HTML and CSS for the element in question. To separate into multiple variables printed on separate lines within your theme as such you will likely need to write some code.
IIRC display suite module separated this element into multiple elements via the UI but I don't know if it also performs the task for D8.
To change the By style you will need to inspect and alter the CSS.
All of which leads toward generating a subtheme of bartik to avoid your customizations being overwritten with future updates.
Thank you
VM, thanks for sending me in the right direction. I played with css just enough to prove to myself that I could make a change. I'll save this work for later. I may try other themes, and perhaps the issue will not be present with a different theme.