Home › Forums › WoodMart support forum › Integrating Phone Number Login into Website Popup
Integrating Phone Number Login into Website Popup
- This topic has 6 replies, 2 voices, and was last updated 11 months, 3 weeks ago by
Luke Nielsen.
-
AuthorPosts
-
March 11, 2024 at 12:08 pm #547949
mouriya.signatures1ParticipantWe have installed the “Registration & Login with Mobile Phone Number” plugin on the website. When clicking the login/register button in the header, a popup appears on the right side for login, correct? We need to include the login with the phone number option in this popup. Currently, it is not available in the popup. To address this, we plan to add the shortcode [custom_shortcode] in the popup. However, we are unsure of the location of the login/register popup. Could you please assist us in locating it so that we can insert the shortcode and enable the phone number login functionality?
Attachments:
You must be logged in to view attached files.March 12, 2024 at 11:11 am #548379
Luke NielsenKeymasterHello,
Copy the
woodmart_sidebar_login_form
function fromwoodmart/inc/integrations/woocommerce/template-tags.php
to the functions.php file in your child theme and define an appropriate shortcode to show your custom form.Kind Regards
March 12, 2024 at 2:57 pm #548460
mouriya.signatures1ParticipantI have not created a child theme; I have been making all the updates directly in the parent theme. Should I continue doing it this way?
March 12, 2024 at 3:04 pm #548464
Luke NielsenKeymasterHello,
The thing is after the update, all your changes will gone. If you want to override some parts of the theme and save them after an update, you need to use a Child theme. So I suggest upload the child theme and move all your changes to the child theme.
You can upload the child theme from here: https://xtemos.com/docs-topic/setup-child-theme/
Kind Regards
March 12, 2024 at 3:11 pm #548467
mouriya.signatures1ParticipantFor the time being, could you please assist me in identifying the specific location to place the shortcode? I have no clear understanding from the screenshot you shared.
March 12, 2024 at 3:13 pm #548468
mouriya.signatures1ParticipantOr could you please update it from your end? It would be really helpful for us.
March 12, 2024 at 3:25 pm #548475
Luke NielsenKeymasterHello,
1. Copy the code from the screenshot: https://prnt.sc/KUoNqLmn1uCH
2. Paste to the functions.php file in the child theme: https://prnt.sc/i69h6GIAki1N
3. Either create a custom name for that function and add an appropriate code to show that form you want: https://prnt.sc/TgnN6dvEyLAg , https://prnt.sc/OqKzwgdo9qaG or copy the default function like there: https://prnt.sc/7fs_IjfBAA8u and add the needed content.As a result, your custom content will appear: https://prnt.sc/1ram2W6lZplF
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register