Yes , it is not as simple as just adding code I gave you, hence the fatal error. The themehooks operate as a plugin for the theme if the the theme is a tpl based theme. You need a proper function like the one RJ gave you .
**Otherwise yes you can add php to the default.master.php. ** If that is what the theme uses. Most my themes use it. I like it that way, to me it makes it easy.
You can also create a module for your button or any kind of content. A module in vanilla speak, is a widget.
Look at my plugin to get an idea of how to make modules.
Comments
This works perfectly. I can't thank you enough. It looks like I can add the classes 'Button' and 'Primary' to make it look more like a button as well.
Great! Now take a step back, look at how few lines of code you have needed and dive into the adventure of customizing your forum
I can see why you have the title of Cheerleader & Troubleshooter.
Yes , it is not as simple as just adding code I gave you, hence the fatal error. The themehooks operate as a plugin for the theme if the the theme is a tpl based theme. You need a proper function like the one RJ gave you .
**Otherwise yes you can add php to the default.master.php. ** If that is what the theme uses. Most my themes use it. I like it that way, to me it makes it easy.
You can also create a module for your button or any kind of content. A module in vanilla speak, is a widget.
Look at my plugin to get an idea of how to make modules.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌