Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKelvin Atawura
Front End Web Development Techdegree Student 19,022 Pointshow to call and display the woocommerce login form on my index.php page
Wanted to know how can you can display awoocommerce template on another template in your theme root. Do you use the same get_template part()? or the woocommerce_get_template_part()?Lets say i want to display the user login form on my home page how do l do this? Zac Gordon
2 Answers
Sue Dough
35,800 PointsJust use the shortcode [[[woocommerce_my_account]]] or echo the shortcode into the template.
Kelvin Atawura
Front End Web Development Techdegree Student 19,022 Pointsl have added the short code but it wont display my registration or login form on there. any ideas?
Sue Dough
35,800 PointsSorry I don't know where I found that short code. Way too much coffee. You may need another plugin.
There is a lot of login/register plugins.
https://wordpress.org/plugins/zm-ajax-login-register/ https://wordpress.org/plugins/login-sidebar-widget/
Kelvin Atawura
Front End Web Development Techdegree Student 19,022 PointsIs that possible to connect this login plugin with woo commerce so wen people login they get to the woo commerce my account page.
Sue Dough
35,800 PointsA lot of login plugins have a setting where to redirect the user after logging in/registering . You just need to look around and test some plugins and see what works for you.
Kelvin Atawura
Front End Web Development Techdegree Student 19,022 PointsKelvin Atawura
Front End Web Development Techdegree Student 19,022 PointsIs won't that display both the registration form and the login form? I am working with a design and wanted to customise it all abit further. Moreover like how did it get a gif to work in your display picture ghost code