I want to show the login and registration form in a tab , when I click registration form should be open, and when I click login form login for should be open
Magento2 – How to Add Tab for Login and Registration Form
magento2registration
magento2registration
I want to show the login and registration form in a tab , when I click registration form should be open, and when I click login form login for should be open
Best Answer
Please add the below code in your theme files. I have shown you here that how we can set tabbing section.
Also written here is some piece of code CSS. Please change CSS according to your need.
Please add js code in your script.js file. Here I have added code in the phtml file but please write CSS and js in proper theme files.
I have done in luma theme.
Please check the output:-
https://prnt.sc/1qhkjgg https://prnt.sc/1qhkjs0
Cheers!