Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
645 views
in Q2A Core by
Hey guys

I wanna let  my widget be shown in the middle of nav and page-title

But Q2A only has position after page-title.

is there any solution or i should make some changes?

 

Thanks in advanced
Q2A version: 1.7

1 Answer

+1 vote
by
selected by
 
Best answer

Usually, if you specify the top of the main area, the widget will be displayed there. For example, try to use "Ask box widget". When "Main area - Top" is not displayed in "Position" field of "Admin" > "Layout" > "Add widget", allow_region() function of your widget may be wrong.

http://www.question2answer.org/modules.php?module=widget

In addition, if you want to display your widget with full-size, there will be a need to customize main() function of theme. e.g...

Before:

$this->output('<div class="qa-main'.(@$this->content['hidden'] ? ' qa-main-hidden' : '').'">');
$this->widgets('main', 'top');

After:

$this->widgets('main', 'top');
$this->output('<div class="qa-main'.(@$this->content['hidden'] ? ' qa-main-hidden' : '').'">');

 

by
Thank you man
I've changed my theme layer and put my widget before page title. everything works right .
...