[Resolved] Bold text but only in articles

Home Forums Support [Resolved] Bold text but only in articles

Home Forums Support Bold text but only in articles

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2035176
    Swadhin

    Hi there,

    I tried making links on my articles (both pages and posts) appear bold. I used the following code:

    #content a, a:not(.button) {
        font-weight: bold !important;
    }

    But it made all links bold like meta data link, link in the post navigation etc.

    I tried using this code too:

    p a:link, p a:hover, p a:active, p a:visited, a:not(.button) {
        font-weight: bold !important;
    }

    But it too had the same effect.
    I want something that only makes the text links inside the article bold. No other links (buttons, post meta, navigation, etc).

    Thank you,
    -Swadhin

    #2035226
    Elvin
    Staff
    Customer Support

    Hi there,

    Try this:

    body.single .entry-content a:not(.button) {
        font-weight: bold !important;
    }

    Let us know how it goes. ๐Ÿ™‚

    #2035508
    Swadhin

    Hi Elvin,

    I just found this code somewhere and am currently using it.

    p a:not(.button) {
        font-weight: bold !important;
    }

    Which do you recommend? This code or yours? I’ll go change to the one you provided if it is better.

    Thank you,
    -Swadhin

    #2035590
    David
    Staff
    Customer Support

    Hi there,

    your CSS is fine.

    #2035635
    Swadhin

    Thank you David. ๐Ÿ™‚

    #2035647
    David
    Staff
    Customer Support

    You’re welcome

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