Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Text formats not working

    Bug Reports
    6
    13
    153
    Loading More Posts
    • 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.
    • R
      rospax last edited by rospax

      Hi there,

      Having trouble with the text formats.
      It seems that the font and colour I've selected for my "default" style is being applied to all of my text formats, ignoring the other styles I've set. Only the size seems to be applied from the style.

      See screenshot where "Sectra 2" should be appearing in the drop-down - but the style shown is clearly not corresponding with the one I've created.

      https://www.dropbox.com/s/ipevv43565rolqr/Screenshot 2019-09-18 23.52.57.png?dl=0

      https://www.dropbox.com/s/gacqxot53nrbjcy/Screenshot 2019-09-18 23.53.08.png?dl=0

      https://www.dropbox.com/s/kvvaktd8mrc6c36/Screenshot 2019-09-18 23.55.38.png?dl=0

      Any help would be appreciated as this is really slowing things down!

      Using Chrome on Mac 10.13.6

      1 Reply Last reply Reply Quote 0
      • edgrbnz
        edgrbnz last edited by edgrbnz

        🤔
        To me this seems like you selected the font (blue rectangle Lausanne-…) beforehand and then applied the text format Sectra 2. This could lead to a <span> tag in the text which could potentially overwrite the font-family of your desired text-format.

        Could you please switch to the code-view (magenta rectangle) an copy paste your code here?

        0_1568838123445_1VxaWGqg.jpg


        Does this happen in every text section of your website?

        ✦ ✦ ✦

        R 1 Reply Last reply Reply Quote 0
        • mariusjopen
          mariusjopen Global Moderator last edited by

          Good answer @edgrbnz !!

          www.mariusjopen.world

          1 Reply Last reply Reply Quote 1
          • R
            rospax @edgrbnz last edited by rospax

            @edgrbnz thanks for the suggestion but this doesn't seem to be showing up in the code:

            <p class="_Sectra 2">Kangaroo Valley,<br />2 hours south of Sydney</p>

            The default style of Lausanne 16px is still visible in the selection fields as you can see in this screenshot, this seems to be over-riding the text style. If I change the default text style to another typeface (eg. Sectra) it will default to that one instead.

            https://www.dropbox.com/s/k81v2o4jqd782l1/Screenshot 2019-09-21 15.19.31.png?dl=0

            Any ideas?

            1 Reply Last reply Reply Quote 0
            • edgrbnz
              edgrbnz last edited by edgrbnz

              Okay 🤔 that’s strange.

              Is there any link to the site in question?
              Do you use any kind of custom code?
              What file format are your uploaded fonts?

              ✦ ✦ ✦

              1 Reply Last reply Reply Quote 0
              • mariusjopen
                mariusjopen Global Moderator last edited by

                Dear @rospax
                at this point it would help if you could post a link to your website that we can have a look!

                Best!

                Marius

                www.mariusjopen.world

                1 Reply Last reply Reply Quote 0
                • L
                  leoncov last edited by leoncov

                  Hello,

                  I seem to have the same problem;

                  my default text format gets applied to all my text, ignoring the custom text formats which I've applied. This happened after uploading a webfont but persists even after changing back to a standard font. And it only affects text on pages, in the menu or the sitetitle everything gets applied fine.

                  As an examlpe:
                  The vertical Title "AFTER DARK" on the left should be ._site_title (expanded and black) instead of the default format (link: https://leonbricola.com/afterdark)

                  In the Editor everything looks right:
                  editor.png

                  The text is placed like this (code-view):
                  <h1 class="_site_title">AFTER<br />DARK</h1>

                  If I inspect the text in the browser it seems as if the custom format gets applied but overwritten by the default format of the

                  lay-textformat-parent
                  

                  Here's the screenshot of my inspector:
                  textformat_inspector.png

                  I'm not sure but I feel like the

                  .lay-textformat-parent > *
                  

                  overwrites everything that I've applied with custom text formats…

                  @rospax did you eventually find a solution that worked for you? Or does anybody else have an idea what the problem might be?

                  In case that could be relevant here are the two text formats:
                  site_title.png
                  default.png

                  Best, Léon

                  1 Reply Last reply Reply Quote 0
                  • Richard
                    Richard Global Moderator last edited by

                    Dear @leoncov

                    Will Forward this as its Likely a Bug! :)

                    Making sure you don't have any custom JS that may be interfering?

                    & Lay Theme, Wordpress & lay theme's Plugins are all up to date?

                    You don't have any third-party plugins that when de-activated resolve the issue

                    Best
                    Richard

                    1 Reply Last reply Reply Quote 0
                    • arminunruh
                      arminunruh Global Moderator last edited by

                      @rospax Interesting.

                      You cannot use a " " space for a textformat's name.
                      This is what I have to say about your Textformat "Sectra 2"
                      I thought I built in a check that prevents people from creating a textformat that uses a space in it.

                      And I did indeed:
                      Bildschirmfoto 2020-11-25 um 17.58.28.png

                      Textformats that use a space won't work. I'm curious to how you were able to add a textformat with a space in it's name.

                      1 Reply Last reply Reply Quote 0
                      • arminunruh
                        arminunruh Global Moderator last edited by arminunruh

                        @leoncov

                        lol
                        I think I know now why this bug happens :O
                        Lately it has become possible to change the order of Textformats via drag and drop in lay options -> textformats.

                        If the textformat ._Default will be after your custom textformats it will overwrite them, it seems. It should be at the top of the list.

                        I'll need to fix this and make it work regardless of the order.

                        1 Reply Last reply Reply Quote 0
                        • arminunruh
                          arminunruh Global Moderator last edited by

                          @leoncov

                          if you update Lay Theme now it should work again

                          1 Reply Last reply Reply Quote 0
                          • L
                            leoncov last edited by leoncov

                            @arminunruh

                            hehe
                            Yes! While changing the font I cleaned up my textformats and moved the default format down the list after I noticed thats possible… So that was the problem, putting it back up in the list solved it as you suggested.

                            And after updating the theme it now works in any order! many many thanks!

                            1 Reply Last reply Reply Quote 0
                            • Richard
                              Richard Global Moderator last edited by

                              Dear @leoncov

                              Great to hear, thanks for following up :)

                              Have a wonderful day Léon, & best wishes

                              Richard

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Before you post

                              Use the Search Feature. Maybe there is already a solution to your issue.

                              1. Update Lay Theme and all Lay Theme Addons
                              2. Disable all Plugins
                              3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
                              4. Now see if your problem solved itself
                              5. Go here, see if your problem is listed here:
                              Troubleshooting

                              When you post:
                              1. Post a link to where the problem is
                              2. If the problem is difficult to explain, post screenshots / link to a video to explain it

                              Thanks!

                              Online Users

                              A
                              K
                              F
                              G
                              F
                              S

                              Recent Topics

                              • A

                                New button feature not available

                              • A

                                Unable to update lay theme / to login wp admin

                              • A

                                Theme crashed - because of Polylang?

                              • A

                                fullscreen slider: slow load time + mobile: images dropping to bottom

                              laytheme.com