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

I don't want to have the grey box around the sides of the q&a section. I want to embbed it in a mediawiki template so the question and answer section is surrounded by a different sidebar and header.

How do I do this?

 

My site is thepetwiki.com it is build using mediawiki 1.19. 
I would like the look of the q2a to be similar to that of the site. 
Below is a screenshot of how I want it to look. Basically the q2a should be in the content area and the sidebar and header should be the same as on my site. 
Thanks 
 
by
Please give some detail. What mediawiki and which sidebar. Better if you can attache some reference images.
by
I've edited the question above.
Thanks

2 Answers

0 votes
by
Okay I almost got what you are looking for.

1. In few words, You want to make Q2A look and feel same as yoru wiki site. Is that right?

or

2. you want to add entire Q2A into your wiki site?

Point 1 is quite possible but its long job and require some time to built it.

Point 2 is little difficult (not impossible) and expensive way to do. Also not good idea to do as if anyone will update the package than you may face the problem to update that.

Are you ready to pay? or you want to do it yourself? don't worry just asking I will try to help you in both way.
by
I'm not sure which option best fits what I want. Basically I would like to integrate the two sites, first I want to get the css right. The tricky part is the css for the wiki site uses wiki functions and code. How do I enable these to be used in my q2a code? (I would like to work on this job myself, not outsource it).
by
please provide your site url so we can check it and try to help you.
0 votes
by

I do something similar with my custom advanced theme. Check the docs on this site for advanced themes, then what you would do is first add these 2 functions:

function header()
{
    require_once 'header.php';
    parent::header();
}
function footer()
{
    parent::footer();
    require_once 'footer.php';
}

Then in header.php you just put the HTML from after the <body> tag, right up until where the content will go. In footer.php, everything from just after where the content would end, up until </body>

 

by
I would like to put code in the sidebar on the left-hand side of the image (see snapshot in question), not in the footer. Which part of the theme code should I edit for this?
...