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. Justufying Text

Justufying Text

Scheduled Pinned Locked Moved General Discussion
text typo justi
13 Posts 5 Posters 1.9k 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.
  • arminunruhA arminunruh

    Good question! :D
    Ok so let's say you created a textformat called "justifiy".

    Then in Lay Options -> Misc Options you enter this CSS:

    ._justifiy{
    text-align: justify;
    }
    

    Let me know if that works!

    I Offline
    I Offline
    idanshe
    wrote on last edited by
    #3

    @arminunruh cool!!! thanks a lot :)

    I 1 Reply Last reply
    0
    • I idanshe

      @arminunruh cool!!! thanks a lot :)

      I Offline
      I Offline
      idanshe
      wrote on last edited by
      #4

      @arminunruh hey armin! after the update of the lay theme my text isn't being justifying.. what should i do?

      thanks!

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

        Yeah I changed the code a bit.
        Try:

        .lay-textformat-parent ._fliesstext{
        text-align: justify;
        }
        
        I 1 Reply Last reply
        0
        • arminunruhA arminunruh

          Yeah I changed the code a bit.
          Try:

          .lay-textformat-parent ._fliesstext{
          text-align: justify;
          }
          
          I Offline
          I Offline
          idanshe
          wrote on last edited by
          #6

          @arminunruh super thanks! :)

          1 Reply Last reply
          0
          • omooreO Offline
            omooreO Offline
            omoore
            wrote on last edited by
            #7

            @arminunruh
            Is this code still working in 2018?

            If I create a "paragraph format" and "justify" the sample text using the justify block button, and then apply the format to text in the gridder, there is no change.
            I put in the code in the lay options --> custom css

            Any help is appreciated!
            Thanks

            1 Reply Last reply
            0
            • mariusjopenM Offline
              mariusjopenM Offline
              mariusjopen
              Global Moderator
              wrote on last edited by
              #8

              Dear @omoore
              don't forget to put IMPORTANT behind the code:

                  text-align: justify !important
              

              Best!

              Marius

              www.mariusjopen.world

              omooreO 1 Reply Last reply
              0
              • mariusjopenM mariusjopen

                Dear @omoore
                don't forget to put IMPORTANT behind the code:

                    text-align: justify !important
                

                Best!

                Marius

                omooreO Offline
                omooreO Offline
                omoore
                wrote on last edited by
                #9

                @mariusjopen It works now - Thank you!

                1 Reply Last reply
                0
                • mariusjopenM Offline
                  mariusjopenM Offline
                  mariusjopen
                  Global Moderator
                  wrote on last edited by
                  #10

                  Great! Happy to hear!

                  www.mariusjopen.world

                  1 Reply Last reply
                  0
                  • Y Offline
                    Y Offline
                    yelmarb
                    wrote on last edited by
                    #11

                    I'm trying to justify text on a specific mobile page but for the life of me I can't make it work.

                    @arminunruh could you please tell me how can I target specific text on a mobile only site?

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

                      hey!

                      So I think you can find out the slug-* body class:
                      https://laytheme.com/documentation/custom-css-styling.html#css-based-on-current-page

                      then in lay options → custom css & html

                      in css for mobile, do:

                      .slug-yourslug .text *{
                      text-align: justify !important;
                      }
                      

                      the .slug-yourslug makes it so its only on that one page

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

                        Screenshot 2023-10-07 at 10.31.22.png

                        of course if you wanted the text to be justified on mobile and desktop you could create a textformat and use text align, the far right icon

                        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