Links and Style - by mbenven - on WordPress WooCommerce support

This topic has 12 replies, 3 voices, and was last updated 9 years, 5 months ago ago by Eva Kemp

  • Avatar: mbenven
    mbenven
    Participant
    July 6, 2016 at 09:24

    Hello again, I am messing with links, i want only the article link to have a style without affecting all the other links i tried with custom css

    /* unvisited link */
    a:link {
    color: #22a2dc;
    }

    /* visited link */
    a:visited {
    color: #22a2dc;
    }

    /* mouse over link */
    a:hover {
    color: #767676;
    }

    /* selected link */
    a:active {
    color: #767676;
    }

    But it affect all other links how to I style only the one insider an article?

    Also how wouldI style a widget?

    Thanks

    11 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 6, 2016 at 11:10

    Hello,

    Please provide a direct page where you want to style links.

    Best regards,
    Jack Richardson.

    Avatar: mbenven
    mbenven
    Participant
    July 6, 2016 at 11:16

    You can see the page at http://www.macabc.it

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 6, 2016 at 12:05

    Hello,

    I don’t see links in your posts. Do you mean post title link http://prntscr.com/bpglda ?

    Best regards,
    Jack Richardson.

    Avatar: mbenven
    mbenven
    Participant
    July 6, 2016 at 12:17

    You don’t see them because of the color… the commenta > at the end of each port (main page )is a link 😉 but if i change as per previews post onot only the commenta changes but also the side widgets links (wich i want them to stay as they are now)

    Avatar: Eva
    Eva Kemp
    Participant
    July 6, 2016 at 16:09

    Hello,

    Try to use this code in Global Custom CSS:

    .content-article a {
        color: red;
    }
    .content-article a:hover {
        color: green;
    }

    Write your color values.

    Regards,
    Eva Kemp.

    Avatar: mbenven
    mbenven
    Participant
    July 7, 2016 at 13:32

    Thank you that seems to work, one last thing what is the “.content-article ” equivalent for widget? so i can try and style them myself?

    Avatar: Eva
    Eva Kemp
    Participant
    July 7, 2016 at 13:42

    Hello,

    Try to use this code:

    .sidebar-widget a {
        color: red;
    }
    .sidebar-widget a:hover {
        color: green;
    }

    Regards,
    Eva Kemp.

    Avatar: mbenven
    mbenven
    Participant
    July 7, 2016 at 14:10

    Oh cool thank you very much, as you can see though the title of the article turned blue as well….www.macabc.it

    Avatar: Eva
    Eva Kemp
    Participant
    July 7, 2016 at 15:18

    Hello,

    You have this code in Custom CSS:

    article.post h2 a {
        color: #22a2dc;
    }

    Remove it and titles will be black again.

    Regards,
    Eva Kemp.

    Avatar: mbenven
    mbenven
    Participant
    July 8, 2016 at 06:57

    Superb, fixed everything!

    Thank you very much

    Avatar: Eva
    Eva Kemp
    Participant
    July 8, 2016 at 10:09

    Hello,

    You are welcome.

    Regards,
    Eva Kemp.

  • Viewing 12 results - 1 through 12 (of 12 total)

The issue related to '‘Links and Style’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.