Custom Sidebar Pro on Q&A plugin page
-
Hello,
I have a little problem, how to add custom sidebar on Q&A page? Because Questions page is I don’t know how to say, something special, I can’t manage main Question page. How to do that?
-
Hi @viliauskas,
I hope you are well today and thank you for your question.
Could you please tell me exactly which Q&A plugin you are using and also share me the Question page URL from your site where you want to display the custom sidebar so that i can help you to achieve it?
Please advise.
Kind Regards,
Vinod DalviHello,
http://www.test.autoplius.dk/questions/ask/ – the link to question. At the moment my custom sidebar shows Calendar and Categories. I have made, that custom sidebar appears on “Questions” and “Unanswered questions”, but do not know how to make it appear on “Ask” section.
WPMU Q&A (https://premium.wpmudev.org/project/qa-wordpress-questions-and-answers-plugin/) – questions plugin.Hi @viliauskas,
Thank you for your reply.
The custom sidebar is not displaying on the page http://www.test.autoplius.dk/questions/ask/ because it’s the virtual page.
To display the custom sidebar on the above virtual page try creating the sidebar-question.php file in the root directory of your child theme and add the following code in that file.
<?php if ( is_active_sidebar( 'cs-1' ) ) : ?> <aside class="sidebar sidebar-primary widget-area" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar"> <?php dynamic_sidebar( 'cs-1' ); ?> </aside> <?php endif; ?>If required edit the custom sidebar id ‘cs-1’ in the above code which you can create by appending the custom sidebar number to the string cs- which you want to display on the above page. The custom sidebar number starts from 1 on wards from top to bottom.
Where we use ‘cs-1’ in the example you can also use any existing sidebar-ID. All Custom Sidebars will start with ‘cs-‘ (the actual ID is not displayed anywhere, but you can find it in the export-file, or when looking at the page source/network traffic of the widget page, …). Of course you can also use any theme sidebar-ID for replacement.
Best Regards,
Vinod DalviAmm, this code doesn’t work.. Well, I have another one issue. In mysite/questions only admin sees all questions, when I log in like a simple user I do not see any questions.. In QA plugin settings I checked boxes for subscriber and for all other users.. But questions doesn’t shows up.. :/
mysite.com/questions*
Hi @viliauskas,
Amm, this code doesn’t work..
I have tested it and the provided code is working fine me.
Could you please tell me in detail how you have used it and have you made any changes in the code if required in your case as described above?
If you have made the changes then please share me the changed code.
In mysite/questions only admin sees all questions, when I log in like a simple user I do not see any questions.. In QA plugin settings I checked boxes for subscriber and for all other users.. But questions doesn’t shows up.. :/
It’s working fine on my test site for all users.
I have tested it on your site creating test user and found the questions page is displaying the “No questions found.” message.
Is this what you are getting?
This can be due to plugin/theme conflict on your site.
You can just try on your development site using default WordPress theme like Twenty Thirteen and deactivating all other plugins as displayed in the following flowchart to know which theme/plugin is conflicting if any.
http://premium.wpmudev.org/wp-content/uploads/2013/12/Support-Process-Support-Process.png
Regards,
Vinod DalviHello,
I have tested all my plugins and Q&A plugin shows questions when “Protected Content”(https://premium.wpmudev.org/project/protected-content/) plugin is turned off. What should I do?
Thank You
Hi @viliauskas,
Oh that’s definitely strange, we’d love to get that sorted though!
WordPress.org discourages support of commercial products here (see: Commercial products are not supported here).
However, we’d love to discuss this with you if you’ll get in touch through our Contact form.
Hope to hear from you there, looking forward to getting that sorted asap!
Cheers,
David
The topic ‘Custom Sidebar Pro on Q&A plugin page’ is closed to new replies.