Site logo

Archived topic

How to add if text function?

3 replies · Started by Chetan on June 17, 2018

Viewing posts 1–4 of 4

How can make download link bold in all post with php function.

Hi there,

I'm not sure if you can use PHP for that. Can you give the links a CSS class? That way we can just use CSS.

Let me know :)

OK. But it should work on all the download(text) link in the post. And only download text not any other link.

You can target specific links by giving them a class:

<a href="#">Just a regular link</a>
<a class="download-link" href="#">I'm a download link</a>

Then you can target the download link:

.download-link {
    font-weight: bold;
}
This archived topic is closed to new replies.