Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
1.6k views
in Q2A Core by
Is there a way to add custom content in the sidebar?

I want to add some buttons images and html content. I am looking for something like Wordpress Widgets that lets someone add a blank box and write there whatever one want.

Is there a plugin for that ?

 

Thanks.

2 Answers

–1 vote
by
Yes, you can add custom content in sidebar. check it in admin panel.
by
I need to add 4.

One at the top.
The second one after the activity
The third one after the categories
The fourth at the very bottom.

Each of them with custom HTML.

Where in admin I can add and arrange them ?
by
then you need to modify theme.
+1 vote
by

You can make a theme, and override the sidepanel() function in qa-theme.php.

On my website I did this, adding the code below to qa-theme.php

 

 

function sidepanel()
{
$this->output('<div class="qa-sidepanel">');
$this->output('<br><br>');
$this->search();
$this->output('<br><br>');
$this->output('<br><div style="background:url('.$this->rooturl.'welcome1.png) no-repeat;width:176px;height:72px;"></div>');
$this->output('<br><a href="/about"><img title="About" src="'.$this->rooturl.'welcome2.png"></a>');
$this->output('<br><div style="background:url('.$this->rooturl.'welcome3.png) no-repeat;width:176px;height:136px;"></div>');
$this->output('<br><a href="/ask"><img title="New thread" src="'.$this->rooturl.'welcome4.png"></a>');
$this->widgets('side', 'top');
$this->sidebar();
$this->widgets('side', 'high');
$this->nav('cat', 1);
$this->widgets('side', 'low');
$this->output_raw(@$this->content['sidepanel']);
$this->feed();
$this->widgets('side', 'bottom');
$this->output('</div>', '');
}
by
Gotta tell ya! your website is the most fun looking q2a I ever saw, where did you get the drawings?
by
Oh I make them myself, thanks a lot for the compliment!!!
by
Wow! you have quite an artistic flair. Good for you man
...