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. insert link not working

insert link not working

Scheduled Pinned Locked Moved General Discussion
10 Posts 2 Posters 314 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.
  • T Offline
    T Offline
    Toby
    wrote on last edited by
    #1

    Hi

    The insert link stops working when I've added a class / ID to same text box.

    In my case 'Close'

    www.tobyneilan.com/lockdown-2

    toby

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

      Dear Toby

      @Toby

      Beautiful website and Artworks ✨
      Have sent you a message via 'Chats' āž”ļø


      Best wishes
      Richard
      1 Reply Last reply
      0
      • T Offline
        T Offline
        Toby
        wrote on last edited by
        #3

        Thanks Richard - I've sent you a response.

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

          Dear @Toby

          Thank you šŸŒ I understand now:

          " The insert link stops working when I've added a class / ID to same text box. " "In my case 'Close'"

          When testing I had no issue creating links, but then see the problem on the front-end.

          Giving an element the class or ID 'close' assigns something native/default in either Lay Theme or WooCommerce to the element.

          I would suggest choosing a different Class or ID name that doesn't cause this interference. When testing different names, your element worked as it should.

          Thank you for posting this Toby as i learnt something, also have a wonderful day, let me know if you run into further issue 🌼

          Best wishes
          Richard
          1 Reply Last reply
          0
          • T Offline
            T Offline
            Toby
            wrote on last edited by Toby
            #5

            Hi Richard
            Thanks for the response. - I changed the class/ID to 'back' and tried a number of other names too but the link still won't respond!?

            Cheers
            Toby

            1 Reply Last reply
            0
            • RichardR Offline
              RichardR Offline
              Richard
              Global Moderator
              wrote on last edited by
              #6

              Dear Toby

              @Toby

              I have created a test page called "Link Test By Richard"

              Here i have given the text element a class: special.
              The link works as it should.

              Talk soon & best wishes
              Richard

              T 1 Reply Last reply
              0
              • RichardR Richard

                Dear Toby

                @Toby

                I have created a test page called "Link Test By Richard"

                Here i have given the text element a class: special.
                The link works as it should.

                Talk soon & best wishes
                Richard

                T Offline
                T Offline
                Toby
                wrote on last edited by
                #7

                @Richard said in insert link not working:

                Link Test By Richard

                Hi Richard

                I've narrowed it down - all links work until you add the 'fixed' element and then the class / id stops working - any suggestions??

                Thanks
                Toby

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

                  Dear @Toby

                  This is is a z-indexing problem related to the navbar.

                  https://www.w3schools.com/cssref/pr_pos_z-index.asp


                  I set up a test page as you needed:

                  • text element with 'close'
                  • Linked back to 'projects' page
                  • custom class 'back' applied

                  Screen Shot 2021-05-21 at 10.57.18 AM.png


                  If the Link falls under the navbar's area it becomes unclickable because it is hidden behind ( even though the navbar is transparent it still applies ) :
                  Screen Shot 2021-05-21 at 11.01.27 AM.png

                  For testing purposes i set the text elements 'z-index' to 99 & the navbar's 'z-index' to 0. This was issue as now the 'close' text element / link is clickable:

                  Screen Shot 2021-05-21 at 11.02.32 AM.png

                  The Link was functioning as it should all along but this was why you couldn't activate it.


                  Best wishes Toby & thank you for supporting Lay Theme šŸŒ
                  Sincerely
                  Richard
                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    Toby
                    wrote on last edited by
                    #9

                    Ah! the dreaded z- index
                    Thanks Richard

                    Toby

                    1 Reply Last reply
                    1
                    • RichardR Offline
                      RichardR Offline
                      Richard
                      Global Moderator
                      wrote on last edited by
                      #10

                      Yes the z-index a common enemy indeed! šŸ™ˆ

                      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