Where to edit to add image under the "New Discussion" button?

In the left column my "New Discussion" button has been renamed to "Ask a question". But how do I insert an image between the button and the start of the category list?
thx
0
Best Answer
-
vrijvlinder MVP
Use the plugin apt ads or pockets to add it or manually put it in the default.master.php find this part< div id="Panel" >< ?php $this->RenderAsset('Panel'); ? > and place your < img > in there. You might have to play around with where to put it in to make it show where you want it.
5
Answers
Use the plugin apt ads or pockets to add it or manually put it in the default.master.php find this part< div id="Panel" >< ?php $this->RenderAsset('Panel'); ? > and place your < img > in there. You might have to play around with where to put it in to make it show where you want it.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
To add an image beneath the "New Discussion"/"Ask a Question" button, you'll need to hook into the
AfterNewDiscussionButton
event in three different controllers (one for the category listings, the discussion listings and the individual discussions) like this:You could put this code in either a plugin or theme hooks.
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub