• Resolved fabthi

    (@fabthi)


    Hi everybody
    I have this page where phrases linked to external sites (Visitate il portfolio…) appear with underline and underline itself is changing color when you hover on the phrase.
    How can I avoid the underline to appear?
    thanks
    Fabio

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter fabthi

    (@fabthi)

    You are using two different stylesheets for those pages

    I am using the same theme (Brunelleschi) with the same plugins; the only difference between the two is the Content Width option that is 800px and 960px

    The hover color can be controlled by this css:

    a:active, a:hover, a:visited { color: #0066CC; }

    You must change the color to whatever you want the links to be.

    But, the underline is caused by a surrounding span tag with a style in it. You will need to remove that span tag.

    Thread Starter fabthi

    (@fabthi)

    Sorry vtxyzzy, it’s my fault in describing my issue.
    My main and real problem is to avoid links changing color when hover.
    If you take a look at this page you can see links are underlined (my choice) but they maintain their original font color when hover. I didn’t make any modification to css for this and also notice I use the same theme of the page where links change color instead.
    That’s something I don’t understand; the reason I am using the same theme and plugins (and theme settings as well) is to avoid precisely this kind of troubles, I mean I expect that things should work the same way.
    But they don’t, and this is an odd thing about WP…

    The cause is not WP, but the coding of the pages. In this page

    https://fotografodimatrimoni.fabiothian.com/

    the link text is enclosed in a span tag that sets the color:

    <a target="_blank" href="https://www.fabiothian.com/weddings">
    <span style="color: #808080;">
    <strong>> Visitate il mio portfolio <</strong>
    </span>
    </a>

    In this page:

    https://fotografodimatrimonio.fabiothian.com/http:/

    the span encloses the entire link, not just the text, so the behaviour is different:

    <span style="color: #606060;">
    <strong>
    <a target="_blank" href="https://www.fabiothian.com/weddings">> Visitate la mia galleria <</a>
    </strong>
    </span>

    You have coded the entries differently on the two pages.

    Thread Starter fabthi

    (@fabthi)

    I don’t know why this is happening, I always use the visual editor and I only go to the html editor when something (like this case) is wrong.
    That’s why I say that I am doing “same things with different results”…

    The WP visual editor is notorious for not doing quite what you want. You might try the CKEditor plugin. Many users find it more reliable than TinyMCE.

    Thread Starter fabthi

    (@fabthi)

    The WP visual editor is notorious for not doing quite what you want.

    Eh eh…I often thought the same thing ??
    I’ll give a try to the plugin you suggest, thanks!

    Thread Starter fabthi

    (@fabthi)

    Wow, the CKE visual editor panel is a promise for wonders!

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘How to hide links underline’ is closed to new replies.