How to make a link-button in an article

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
Claudia_07
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Jan 14, 2015 11:44 am

How to make a link-button in an article

Post by Claudia_07 » Wed Jan 14, 2015 11:55 am

I want to end an article with : 'Please contact me' and make it as a link.
That's no problem. But it is nicer to have the link appear as a button.
That's my problem: there must be a way to make a link-button from text in an article.
I've searched already a lot, but didn't find the answer yet.

SharkyKZ
Joomla! Guru
Joomla! Guru
Posts: 993
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: How to make a link-button in an article

Post by SharkyKZ » Wed Jan 14, 2015 12:20 pm

If your template uses Bootstrap, you use existing button CSS classes on a link (e.g. <a href="/contact" class="btn btn-primary">Contact Me</a>). If not, you can style the link to look like a button by yourself.

You can insert a button. Just configure your editor not to strip out button tags.

Another option is to create a module with button in it and insert it to article. This is useful if you want to insert the button into multiple articles and might want to change the link in the future.

HubbaHut
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Jul 17, 2018 5:56 am

Re: How to make a link-button in an article

Post by HubbaHut » Tue Jul 17, 2018 5:59 am

Hi,

I know I'm pulling this post from the grave, but not finding anything else related to this.
I wish to be able to do exatly what SharkyKZ explains above, but i do not know how.

Could anyone be so kind as to give me some steps to achieving this with the protostar template Joomla 3.x

Many Thanks!!

User avatar
muratyil
Joomla! Explorer
Joomla! Explorer
Posts: 468
Joined: Sun Apr 13, 2008 8:10 pm

Re: How to make a link-button in an article

Post by muratyil » Tue Jul 17, 2018 7:38 am

For protostar template simply adding btn class to link converts it to a button. Your code should be like this

Code: Select all

<p><a class="btn" href="index.php">Button Text here</a></p>
http://www.joomlatema.net - Joomla Extensions and Templates
http://wtnews.joomlatema.net/ - WT News Responsive Joomla News And Magazine Template


Post Reply

Return to “Templates for Joomla! 3.x”