Advertisement:

Author Topic: Change a link into a button  (Read 193 times)

Germar

  • Newbie
  • *
  • Posts: 19
Change a link into a button
« 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

aide2006

  • Newbie
  • *
  • Posts: 16
Re: Change a link into a button
« Reply #1 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

Germar

  • Newbie
  • *
  • Posts: 19
Re: Change a link into a button
« Reply #2 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 :(

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: Change a link into a button
« Reply #3 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

Germar

  • Newbie
  • *
  • Posts: 19
Re: Change a link into a button
« Reply #4 on: June 21, 2019, 12:25:30 pm »
Thanks BritWeb that did the trick! Case close many thanks!!!