Text formatting Issue
-
Hi forum,
i'd like to use 2 styles (text-formats) for title/subtitle, with only a line break (shift+enter) between them.
like this:
Title<br> (Title text-format)
Subtitle (Default text-format)The problem is when I change the format for one line the other line also changes.
Specific formatting only applies to each line when using a full line break (enter). I'd like to find a solution for this as it would save individual editing of each title/subtitle throughout the site (there are hundreds of them).
is there a global CSS fix for this?
Thanks,
Daniel -
Hey Daniel!
I think what you are looking for is a "character format". From the text in "Text Formats" -> "How to use":
"Paragraph and Headline formats can only be applied to blocks of text. Character formats can be used for words within a block of text."
From your other post I could see that you know some html and things like that, so:
The thing is in html you always need a wrapping <div>, <p> or something like that to apply a style to that specific part of the site. For paragraph textformats the texteditor always uses a wrapping <p> tag. For character formats the texteditor always uses a wrapping <span> tag which is inline, meaning it can be in a text without breaking the text.Ok, you have hundreds of titles and subtitles. Can you please edit one of these texts and in the texteditor click the code button "<>" and copy paste the "title, subtitle" in here?
Thanks
-
Hi Armin,
Yes that's exactly it. Inline formatting.
Example : (_title is now a character format)
<p><span class="_title">Joëlle Abed</span><br />
Comment on va expliquer ça aux hommes<br />
2001</p>I didn't see the difference between text/character formatting.
Thank you very much. -
Ah ok! Ok I hope you don't have to go through hundreds of pages and apply the character format :/
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login