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. syllabification in headlines

syllabification in headlines

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 23 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.
  • D Offline
    D Offline
    dennisbern
    wrote on last edited by
    #1

    Good morning dear forum

    Is it possible to set automatic syllabification for texts and especially for headlines?

    Best regards

    Dennis

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

      Syllabification means your word breaking at certain points in the word.

      If you want it to be done automatically, you can try this.
      https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens

      It seems that there is a CSS property that can do this.

      If your headlines are for example h1, h2, h3, h4, and so on:

      h1,h2,h3,h4,h5{
      hyphens: auto;
      }
      

      Enter this css in "lay options" -> "custom css & html" -> "custom css"

      In the link above, it also says a language attribute is needed so the browser knows which syllabification rules to apply.
      https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/lang

      I think by default Lay Theme websites have a language attribute on the HTML tag that says en-us:
      Screenshot 2025-04-30 at 22.54.24.png

      If you use a language other than English, you probably need to change this for the syllabification to work properly.
      If you go to settings > general and set the site language, I think this will set the lang property correctly:
      Screenshot 2025-04-30 at 22.55.40.png

      For manual syllabification you can use this special button that is available in the text editor.

      When you edit your headline in the text element, put your cursor to where you want the headline to break, then click this button (soft hyphen) :

      Screenshot 2025-04-30 at 22.48.48.png

      Now the headline will break at that point. Please note the soft hyphen character is an invisible character.
      So, once you insert it, it's hard to see where you put it, and if you want to insert it at a different point, you may need to delete the whole headline and write it again, inserting the soft hyphen again.

      Another thing you could try is to set up the headline in a way where it likely doesn't break at all.

      When you create a new text format in Text Formats, you can choose a font size that is a percentage-based font size. Screenshot 2025-04-30 at 22.51.50.png

      Using a percentage-based font size, the headline would scale with the browser, so it won't need to break.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dennisbern
        wrote on last edited by
        #3

        Hey thank you very much! That are many options I didn`t know about. Great support!

        1 Reply Last reply
        1
        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