WordPress.org

Ready to get started?Download WordPress

Forums

DW Question & Answer
How to add sidebar on DW Q&A page (4 posts)

  1. prinshaw
    Member
    Posted 7 months ago #

    Hello,

    Plz give the solution on how to add sidebar to DW Q&A page and also want popular Q&A, recent Q&A in the sidebar.

    http://wordpress.org/plugins/dw-question-answer/

  2. DesignWall
    Member
    Plugin Author

    Posted 7 months ago #

    Hi prinshaw,
    Thanks for your feedback. Since we receive many feedback regarding to the sidebar and Q&A widgets, we are working on an updated version in which we will include back to sidebar and some of the widgets for the sidebar like you mentioned: popular Q&A, recent Q&A and so on.
    Rambu

  3. Locky0019
    Member
    Posted 7 months ago #

    Sidebar activate:

    wp-content\plugins\dw-question-answer\inc\templates\default

    Open: contend-end-wrapper

    If you don't use the default 4 wp theme search this:

    default:
            echo '</div></div>';
            break;

    and replace:

    default:
            echo '</div>';
    	get_sidebars();
    	echo '</div>';
            break;
  4. umagrama
    Member
    Posted 2 months ago #

    Yes, Locky0019 is almost correct, except a little type:

    Find your content-end-wrapper.php file in:

    wp-content\plugins\dw-question-answer\inc\templates\default

    However, I would would follow the instructions on DesignWall's guide and create the content-end-wrapper.php (or any other template file) in your theme-child and do your modification there; otherwise you will lose your modifications once the plugin is updated.

    The styling instructions can be found here:

    http://www.designwall.com/guide/dw-question-answer-plugin/#Style_integration

    Once you get your template file ready to go, you have to add:

    <?php get_sidebar(); ?>

    The code should be strategically added to the correct <div> and adding necessary classes or IDs in order to style correctly. Also make sure that in your WordPress backend you have your widget set to appear on the page Appearance > Widgets ...

    So, basically, get_sidebar() template funtion will load any widget set in Appearance > Widgets for that page.

    Hope it helps someone out there....

Reply

You must log in to post.

About this Plugin

About this Topic