Hi Janob, I think this is a general WordPress question and there may be better locations to ask this question. The base.php is part of the AnsPress theme an not the right place to add sidebars. Look on the internet how to add a sidebar to your WordPress theme, or use a theme that already has a right-side sidebar, such as the default and free WP theme “Twenty Fourteen”. It has a “Content Sidebar”. You can add (AnsPress-) Widgets to that sidebar in the Appearance > Widgets settings.
Simply create a file with this name: single-question.php now copy contents from single.php to new file. Now find this (or something similar) : <?php if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> and remove it and save.
I am not willing to add sidebar in anspress again. As anspress now uses separate page to display its content, so you can simply add widget to your pages. If you dont know how to add a widget position simply search on google “How to add widget position in wordpress”. If you still can’t find solution then let me know. @resolvethis I will gonna remove all exiting position except one AP TOP. Let us know what you guys think about it.
I’m not sure that AP Sidebar is still part of AnsPress 2.0. It might be a left-over of AnsPress 1.x. You might use your theme’s (secondary) sidebar to put your widgets.
You do not have to set the static homepage of your site to the questions page (though you can). You can also just choose any page as static homepage and add the [anspress_questions] shortcode to it. (take the latest master release from github: https://github.com/wp3/anspress/archive/master.zip). Remark: the [anspress_questions] shortcode will always render it’s content at the top of the page. If you want to add some HTML on top of that you should add a widget in the “AP Before” or “AP Lists Top” bar in Appearance > Widgets.
Hello Guys, This feature will work only with 2.0.0 version :). And please note, do not use 2.0.0 alpha version in live site.
Thank you Michael but it’s not working. Please see this video I’m recorded it to make it more clear. – http://youtu.be/fPRbot–GJ4
The plugin automatically creates these page – ask, user, edit, questions with associated shortcodes. I would think you can simply add the shortcode [anspress_questions] to your homepage. You would then need to go to the ‘options’ tab and set the questions page to ‘homepage’. Same for the other pages. Let me know if that works.