Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #894158

    Hi all, I realize this is a basic CSS question, but I’ve been working on it for a while and it’s been driving me crazy. I’ve researched the topic but haven’t found anything that works.

    I would like to underline the costume links in the lists on the right side of this page: http://thechildrensballet.com/costumes. This is not a sidebar, just a column. The links should operate like all other body text links on the site, with underlines on a:link and no underlines on a:hover. Instead, these list links operate the opposite way — they show no underline on a:link and show an underline on a:hover.

    I’ve tried using ID’s and classes for the UL, the LI and the links in the Quick CSS, but nothing seems to be working. I’ve used !important as well.

    If you could provide some guidance, I would really appreciate it. Thanks!

    #894204

    Hey johnjosephjohansson,

    Can you please disable caching and minification while we are helping you? We need to be able to test css rule that we write.

    Best regards,
    Victoria

    #894212

    Thank you, Victoria! I have disabled caching and minification.

    John

    #894254

    Hi,
    I added the custom classes option to your child theme for the layout builder, by adding this code to your child theme functions.php file in Appearance > Editor:

    add_theme_support('avia_template_builder_custom_css');

    Then I went to the bottom of your text block element and added “costumes” as the css class.
    2018-01-06_161449
    Then I added this code in the General Styling > Quick CSS field:

    .costumes a {
        color: #155563 !important;
        text-decoration: underline !important;
    }
    .costumes a:hover {
        color: #155563 !important;
        text-decoration: none !important;
    }

    I wasn’t sure if you wanted to use the same colors, so you can change that if you like.

    Best regards,
    Mike

    #894275

    Thanks, Mike! I really appreciate your help. That worked perfectly.

    #894307

    Hi,

    Great, glad we could help :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #894590

    Thanks — you can close the ticket.

    John

    #894619

    Hi John,

    Thanks for letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to underline link text in lists with CSS’ is closed to new replies.