Force line break inside shortcode block #1696
Answered
by
fekete-robert
rkranendonk
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Have you tried adding <br/>?
…On Tue, Oct 24, 2023 at 3:41 PM Richard Kranendonk ***@***.***> wrote:
I'm using blocks/cover with a rather long Title, and the line now breaks
unnaturally. Is it possible to force a break at the position I prefer?
—
Reply to this email directly, view it on GitHub
<#1696>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6AU3LQDML7VKS4OABCQ6DYA7APLAVCNFSM6AAAAAA6NXE6L2VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZVG43TENBZGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
It seems that the title attribute is used as a string. Try adding a title
explicitly within the shortcode instead, something like this:
```
{{< blocks/cover image_anchor="top" width="min" color="white" >}}
<h1 class="display-1 mt-0 mt-md-5
pb-4">slkdjlsjdgljsldkgglksndlkgnlkzdnf;kv<br/>has;dlh;lskdhg;lshdglhslkdghlkshdlkhsdglkh</h1>
```
…On Tue, Oct 24, 2023 at 4:31 PM Richard Kranendonk ***@***.***> wrote:
Yes, and {{%
%}} and {{
}}. All are rendered literally.
—
Reply to this email directly, view it on GitHub
<#1696 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6AU3MQSUROCONY7WTYQLDYA7GMHAVCNFSM6AAAAAA6NXE6L2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGNZRGAYDG>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rkranendonk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using blocks/cover with a rather long Title, and the line now breaks unnaturally. Is it possible to force a break at the position I prefer?
Beta Was this translation helpful? Give feedback.
All reactions