• Resolved lenaka

    (@lenaka)


    Hello,
    I would like to change the order of the elements from

    Email, GDPR Checkbox, Submit-Button

    to

    GDPR Checkbox, Email, Submit-Button

    It seems like there are no hooks I could use for that, right? So I’d have to edit the default-template.php file.
    Is there a way to create a custom template and to tell the plugin to use this custom template?

Viewing 1 replies (of 1 total)
  • Plugin Support CodeWooGeek Support

    (@codewoogeeksupport)

    Hello there,

    Good day!!

    To override the template from theme for subscribe form in the front-end (Back In Stock Notifier for WooCommerce):

    1. Create a folder inside your current theme in the name of back-in-stock-notifier-for-woocommerce . For example:wordpress->wp-content->themes->storefront/(your theme)->back-in-stock-notifier-for-woocommerce

    2. Go to our plugin folder then inside find the templates folder. (wordpress -> wp-content -> plugins -> back-in-stock-notifier-for-woocommerce -> templates -> default-form.php)

    3. Open the templates folder and copy the file with the name of default-form.php file inside that folder.

    4. Now paste the copied file inside your theme under the folder name of back-in-stock-notifier-for-woocommerce(step 1).

    5. By changing the hook from the file default-form.php you are able to edit the form as per your needs.

    6. That’s all now you’ve successfully loaded the template from theme as well as able to change the subscribe form.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom layout/template?’ is closed to new replies.