Make URL Not Clickable

Discussion in 'HTML & Website Design' started by kertoon, Sep 25, 2015.

  1. #1
    By default, all URLs in Blogger posts become clickable, even you do not set it as links. Presently what I do is I add a space after the www or the two slashes after http in the HTML code.

    It works. But when I hover the cursor over the URLs, it stills show the finger cursor (even though it cannot be clicked). How do i do away with the finger cursor?
     
    kertoon, Sep 25, 2015 IP
  2. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,280
    Likes Received:
    1,696
    Best Answers:
    31
    Trophy Points:
    475
    #2
    Are you able to add stuff to the .css file? You can do something like this:

    .inactive {
       pointer-events: none;
       cursor: default;
    }
    Code (markup):
    and the add class="inactive" to each link you don't want to work:

    <a href="page.html" class="inactive">page link</a>
    Code (markup):
     
    qwikad.com, Sep 25, 2015 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    I'd avoid {pointer-events:???;} for a while. IE<11 does not support it, and while Firefox has supported it since v.3.6, it is off by default on v<41. On >=41, it is on by default, but only on the nightly builds. Chrome and Safari seem OK, but mobile devices are questionable.

    If the link is disabled by a space, or similar, use
    
      a.inactive,
      a.inactive:hover {
          color: inherit;
          cursor: default;
          text-decoration: none; }
    Code (markup):
    cheers,

    gary
     
    kk5st, Sep 25, 2015 IP
  4. kertoon

    kertoon Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #4
     
    kertoon, Sep 26, 2015 IP
  5. kertoon

    kertoon Well-Known Member

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #5
    Thank you so much.
    o much.
     
    kertoon, Sep 26, 2015 IP