Viewing 1 replies (of 1 total)
  • Plugin Contributor Neelkanth Kaushik

    (@myselfneelkanth)

    Hi CozzieF,

    Thanks for using the plugin.

    There are two methods for adding the forms to the sidebars

    First method (recommended):

    You can create a sidebar-<name>.php file and use the shortcode do_shortcode('<name>') wherever you want to show your login or registration form.

    For example :

    1. Create sidebar-wpcrl.php in your theme and add
    <?php echo do_shortcode("[wpcrl_login_form]"); ?> to it.

    2. Call this sidebar in any of your template files like this:
    <?php get_sidebar('wpcrl'); ?>

    Second method: Text widget

    Steps to add shorcodes to your existing sidebar widget:

    1. Add this to your theme’s functions.php file:
    add_filter('widget_text', 'do_shortcode');
    This will enable using the wordpress shortcodes in the Text Widget.

    2. Drag and drop a Text widget to your sidebar and paste the required shortcode there and save it.

    I hope this solves your problem.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Where to put the codes’ is closed to new replies.