well wisher
asked 6 years ago

Hi there guys,first of all i would like to thank you for all the effort you have put in to bring up these two awesome yet free products ,but the thing is i have read all the sytle integration guide and other sources of information in  here on designwall to set up the question answer plugin i was checking it on the local machine before bringing it up live ,the plugin needs not to integrate in old version of wallpress but with new version it needs style integration and thus i followed every step.
Now in page settings i wanted to have the default  template(or any other template like we choose while setting any page in wallpress) in defalut case thats:
[main_sidebar][content(that is question_listing_in_this_case)][secondary_sidebar]
But whatever the template i choose the changes doesn’t gets in effect.And the page remains same with on sidebar at all ,i tweaked content end wrapper and added    <?php get_sidebar(‘secondary’); ?> after last division that get me the required sidebar.
My question is do i have to play with these content wrapper files each time i wish to change the template of the questions page?
Thank You

3 Answers
well wisher
answered 6 years ago

Here is the other question related to same kinda problem

WallPress + Questions and Answers or bbPress

well wisher
answered 6 years ago

I would also like to inform that when wallpress is updated or installed it automatically does all the style integration stuff but while viewing the content start wrapper i found that this code <?php _e( ‘Question & Answer’, ‘theme name here’ ); ?> has “dw-fixel” as the value instead of “wallpress” which is the right value i suppose
<?php _e( ‘Question & Answer’, ‘dw-fixel’ ); ?>  i suppose should be =>>
<?php _e( ‘Question & Answer’, ‘wallpress’ ); ?> as dw-fixel is the name of your other theme i suppose so its kinda fix you can add in changelog but at the same time changing this value is not affecting the site in any way !!!
A little help to get the template thing working from page settings right away will be highly appreciated thanks

Kido D
answered 6 years ago

Hi there,
To resolve this issue, you can open up 3 files in dwqa-templates folder, and change it like below:
content-start-wrapper.php

 <div id="container" class="clearfix">
<div id="content">
<div class="item">
<div class="item-inner">
<?php if( is_page() || is_archive() ) { ?>
<div class="item-main">
<div class="item-header">
<h2 class="item-title"><?php _e( 'Question & Answer', 'dwqa' ); ?></h2>
</div>
</div>
<?php } ?>
<div class="item-content">

content-end-wrapper.php

 </div>
</div>
</div>
</div>
<?php get_sidebar('secondary'); ?>
</div>
<?php get_sidebar('main'); ?>

style.css Since you don’t need to override the style in DW Q&A latest version, so remove all the code in this file.    
If the problem persists, please send us your site URL and the admin account, so we can check it further.
Hope this helps!

well wisher
replied 6 years ago

Hi i was well aware about the style integration you gave above but i was looking for a solution through which i could be able to change templates from page settings of wallpress it self but thanks anyways

Powered by DW Question & Answer Pro