markransome
Member
Hi,
I am trying to add a custom BBCode to be able to add a custom button with a link, this is what I have come up with so far:
BB code tag: btn
Title: Custom button
Replacement mode: Simple
Supports option parameter: Yes
HTML replacement:
I have followed the tutorial in the manual (https://xenforo.com/xf2-docs/manual/bbcode/#custom-bb-codes) but still no joy! If I put the raw code into a widget it works (See attachment ).
Can anybody help?
Kind regards,
Mark
I am trying to add a custom BBCode to be able to add a custom button with a link, this is what I have come up with so far:
BB code tag: btn
Title: Custom button
Replacement mode: Simple
Supports option parameter: Yes
HTML replacement:
HTML:
<p class="custom-button"><i class="fas fa-angle-right"></i>{text}<a href="{option}">{text}</a>.</p>
I have followed the tutorial in the manual (https://xenforo.com/xf2-docs/manual/bbcode/#custom-bb-codes) but still no joy! If I put the raw code into a widget it works (See attachment ).
Can anybody help?
Kind regards,
Mark