[Support request] Style for site links

Home Forums Support [Support request] Style for site links

Home Forums Support Style for site links

  • This topic has 10 replies, 2 voices, and was last updated 4 years ago by Leo.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1195103
    Pedro

    Hello! I’m trying to make the text of the links on my site underline when I mouse over it.

    Something like Amazon does: https://mega.nz/#!upFR1YqR!tDbVgkW6lVq6RkLzCE5bmLmqC5cf1yvsEVwDv-zQSTY

    #1195125
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    .entry-content a:hover,
    .woocommerce ul.products li.product .woocommerce-LoopProduct-link:hover,
    .sidebar .widget li a:hover {
        text-decoration: underline;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps πŸ™‚

    #1195666
    Pedro

    Hi Leo! Thanks for the help.

    CSS works for some links but not for others.

    Like product names or widgets.

    #1195689
    Pedro

    Update: Some site buttons are also underlined when you mouse over them.

    I don’t want this to happen.

    You can help?

    #1195693
    Leo
    Staff
    Customer Support

    Updated the CSS above to include sidebar widgets and product titles.

    Can you guide me to a button that you’d like to exclude?

    #1195702
    Pedro

    Update: The new code worked.

    However I can note for example for products only underline the text when hovering over the product title.

    If the mouse is placed on the product image the text is not underlined.

    Regarding the button, here you can see one: https://www.rebajaslocas.com/envios-y-entregas/

    (They are buttons placed with Gutenberg)

    #1195719
    Leo
    Staff
    Customer Support

    Updated the CSS above again.

    Then add this for the buttons:

    a.wp-block-button__link:hover {
        text-decoration: none;
    }
    #1195728
    Pedro

    Hi leo! Everything worked perfectly.

    Thank you very much for all the help.

    #1195760
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #1219703
    Pedro

    Hi leo! Me again πŸ™‚

    I would like you to please help me, I just realized that the underlining is also being applied to the normal prices of the products.

    Those that appear crossed out and in gray.

    Here’s a screenshot: https://mega.nz/#!uwlXmQqA!umSeg0FGLYbE5hrXAxpz6NWjWvYrlCizjmpZxMgLvtU

    Is there a way to do something to stop this from happening?

    #1219931
    Leo
    Staff
    Customer Support

    Hmm I gave it a shot but unfortunately, I don’t’ think that’s possible if you want the image to trigger all the underlines as it’s included in the same <div>

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.