Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Text formatting Issue

Text formatting Issue

Scheduled Pinned Locked Moved General Discussion
texttext editortext-format
4 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • daniD Offline
    daniD Offline
    dani
    wrote on last edited by dani
    #1

    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

    https://danielcampbell.ca

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by arminunruh
      #2

      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

      1 Reply Last reply
      0
      • daniD Offline
        daniD Offline
        dani
        wrote on last edited by dani
        #3

        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.

        https://danielcampbell.ca

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          Ah ok! Ok I hope you don't have to go through hundreds of pages and apply the character format :/

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          I also code custom websites or custom Lay features.
          💿 Email me here: 💿
          info@laytheme.com

          Before you post:
          1. When using a WordPress Cache plugin, disable it or clear your cache.
          2. Update Lay Theme and all Lay Theme Addons
          3. Disable all Plugins
          4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

          This often solves issues you might run into

          When you post:
          1. Post a link to where the problem is
          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
          Online Users
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search