Site logo

Archived topic

Links for body text

5 replies · Started by Ian on April 25, 2022

Viewing posts 1–6 of 6

How can I add links on body text on my site but not in any other area like sidebars, headers and footers.

Hi Ian,

To clarify, are you want to add Blocks that are links? If so, one approach you can do this is through a Headline Block.

Here is a short screen recording I made showing how to do it: https://share.getcloudapp.com/nOuR4dA0

If you’re referring to Anchor links instead, this article would be helpful: https://docs.generatepress.com/article/smooth-scroll/

Otherwise, if you’re referring to something else, kindly let us know.

Hope to hear from you soon. :)

Hi Fernando,

I have body text on pages and posts but the links are not underlined, so it's hard to tell if they are links? If I use customiser to show links underlined site wide, it puts underlines in sidebar menus etc, which I don't want.

I only want links in body text of pages and posts to be underlined for normal links, not created in blocks.

I've added a screen shot to show you what I mean. The links in the screen shot are at the bottom of the page, url supplied below.

I see. Thank you for clarifying.

If that’s the case, you can try adding a CSS like this in Appearance > Customize > Additional CSS:

.page .content-area p a, .single-post .content-area p a {
    text-decoration: underline;
}

This code should underline Paragraph which are links in the content area of Posts and Pages.

Kindly let us know how it goes. :)

Thanks again Fernando :-)

You’re welcome Ian! Glad to be of assistance. :)

This archived topic is closed to new replies.