Lay Theme Forum

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

    Span class glyphicons not inserting properly in text editor

    General Discussion
    4
    5
    322
    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.
    • DMB
      DMB last edited by DMB

      Hi @Armin-Unruh @mariusjopen ,

      I'm trying to insert some glyphicons in the text editor. Using the 'source code' editor in the text function I can get glyphicons to appear - but only if there is a something entered into the span, like this A (it could be anything however, even a fullstop) :
      —

      <p><span class="glyphicon glyphicon-triangle-bottom">A</span></p>

      —

      If I leave the span blank like this it automatically deletes my code:

      —

      <p><span class="glyphicon glyphicon-triangle-bottom"></span></p>

      —

      How can I solve this because I just want to be able to show icons not characters as well? It seems that to make the span glyphicon appear you need a character value entered in the span tag, which is odd...

      If you leave it blank like my second code example it deletes the code and says 'Empty Text'

      Any ideas?

      Best,

      D

      1 Reply Last reply Reply Quote 0
      • M
        michaelenglert last edited by

        I have the same problem since i wanted to try social media buttons with the way u recommended it

        https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_social_media_buttons

        When i want to add this text:
        <a href="#" class="fa fa-instagram"></a>

        to a page im not able to save it.

        Could u help?
        Thank u very much

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

          Put your code in the HTML editor using the 'HTML' button in 'More'.

          That will work, and is a better place to put it rather than in the text editor.

          D

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

            Is there anyway you could turn the icons you need into a font?

            That’s would be a cleaner solution since you can just enter the characters you need instead of placing images inline.

            ✦ ✦ ✦

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

              Dear @edgrbnz
              good one!

              Best!

              Marius

              www.mariusjopen.world

              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

              Recent Topics

              • C

                image carousel bugging out

              • N

                help needed with cleaning up and optimising lay theme portfolio website

              • R

                Html5 Video Player issue

              laytheme.com