Osclass forums

Support forums => General help => 3.8.x => Topic started by: Germar on June 15, 2019, 04:42:56 pm

Title: Change a link into a button
Post by: Germar on June 15, 2019, 04:42:56 pm
Hi all,

For the start: i'm a rookie at PHP.

I have installed the Watchlist plugin.
In my item.php is now a link visible. But I want to change that into a button.

How do I do that?

This is the code that is been added in item.php: <?php watchlist(); ?>

Can someone please help me with this problem? Thanks in advance!

Regards,
Germar
Title: Re: Change a link into a button
Post by: aide2006 on June 19, 2019, 01:31:12 pm
You can change it in the plugin folder itself.
Maybe index.php under watchlist plugin or it might be functions.php
Title: Re: Change a link into a button
Post by: Germar on June 20, 2019, 02:26:40 pm
You can change it in the plugin folder itself.
Maybe index.php under watchlist plugin or it might be functions.php

Nice, but HOW? I ned the code to change the link into a buton :(
Title: Re: Change a link into a button
Post by: BritWeb on June 20, 2019, 08:22:47 pm
You can change it in the plugin folder itself.
Maybe index.php under watchlist plugin or it might be functions.php

Nice, but HOW? I ned the code to change the link into a buton :(

If your site uses 'Bootstrap', the following line should do it,

Code: [Select]
<button type="button" class="btn btn-primary" btn-block><?php watchlist(); ?></button>
Regards
Title: Re: Change a link into a button
Post by: Germar on June 21, 2019, 12:25:30 pm
Thanks BritWeb that did the trick! Case close many thanks!!!