How to add buttons to articles
You might like to make links in your articles a bit more clickable, by presenting them as buttons. This can be done using CSS styling, and then adding a class to your link. This article describes how I do it.
We will start by using a CSS generator website.
- Browse to https://www.bestcssbuttongenerator.com/
- Style your button how you would like it.
- Copy the CSS code.
- Log into the backend of your Joomla website.
- Go to Extensions > Templates.
- Edit the custom CSS file for your Template.
Now you can apply this css to some text in an article.
- Go to Content > Articles.
- Create a New article.
- Create some hyperlinked text.
- View the article's source code.
- Add the following code to your link:
<a href="/" target="" class="butn">
If you use JCE you can click the Advanced tab on the Link dialog box, and enter butn for the classes field.
Don't forget to flush the cache on your web host as well as your browser.
Thanks for visiting.