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. remove underline link on special text format

remove underline link on special text format

Scheduled Pinned Locked Moved General Discussion
7 Posts 3 Posters 112 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.
  • K Offline
    K Offline
    klass
    wrote on Jan 25, 2024, 11:46 AM last edited by
    #1

    Hi, I am trying to hide the link text decoration for a specific text format.
    I tried every possible way to write the specific CSS command, but it won't work.
    I was able to turn it off for other headlines or text formats, but not here:
    The specific class of the text format is "._MehrLesen".

    Here is the link to the website:
    The Website: https://neu2023.allthingsletters.com/buecher/

    thank you,
    Sarah

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Jan 25, 2024, 5:38 PM last edited by
      #2
      ._MehrLesen{
      text-decoration-line: none!important;
      }
      ._MehrLesen a{
      text-decoration-line: none!important;
      }
      

      does that work?

      K 1 Reply Last reply Jan 29, 2024, 8:54 AM
      0
      • A Offline
        A Offline
        arminunruh
        Global Moderator
        wrote on Jan 25, 2024, 5:39 PM last edited by
        #3

        Screenshot 2024-01-25 at 18.39.05.png

        please see if you need to renew your ssl certificate in your webhost control panel

        1 Reply Last reply
        0
        • A arminunruh
          Jan 25, 2024, 5:38 PM
          ._MehrLesen{
          text-decoration-line: none!important;
          }
          ._MehrLesen a{
          text-decoration-line: none!important;
          }
          

          does that work?

          K Offline
          K Offline
          klass
          wrote on Jan 29, 2024, 8:54 AM last edited by
          #4

          @arminunruh Thanks for your reply.

          The code is not working, it works for other text formats, but this one is tricky:
          I have tried several different CSS codes, but they do not do the job:

          .lay-textformat-parent ._MehrLesen a:hover {
          text-decoration-line: none!important;
          }

          .lay-textformat-parent p span a._MehrLesen:not(.laybutton) {
          text-decoration-line: none!important;
          }

          a._MehrLesen:not(.laybutton) {
          text-decoration-line: none!important;
          }

          I will improve the SSL protection

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Jan 29, 2024, 10:43 AM last edited by
            #5

            Screenshot 2024-01-29 at 11.37.14.png

            this is your custom css mh

            Screenshot 2024-01-29 at 11.38.02.png

            look, its just ._mehrlesen is just applied to a span

            since mehrlesen seems to be a character textformat, it is only applied to a span inside of the anchortag.
            however, we want to style the anchortag.

            https://stackoverflow.com/questions/1014861/is-there-a-css-parent-selector

            try this

            a:has(> ._MehrLesen) {
            text-decoration-line: none!important;
            }
            

            try to learn how to use the chrome inspector to see the html markup. that will help you in writing your css cause how you write your css depends on how the html is structured

            1 Reply Last reply
            0
            • K Offline
              K Offline
              klass
              wrote on Jan 29, 2024, 4:51 PM last edited by
              #6

              it worked! thank you

              1 Reply Last reply
              1
              • K Offline
                K Offline
                Keffer
                wrote on Feb 19, 2025, 4:47 PM last edited by
                #7

                I was also looking for this, thank you Armin for the solution.

                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
                I
                itsmarkjohn
                22 minutes ago
                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