My Courses > CustomizeWoo > Module 4 > Lesson 11: My Account Pages: ADD Content
My Account Pages: ADD Content
This is how to add content to the my account pages by using the visual hook guide. Always start from displaying some simple “TEXT” in the correct position, and then make your functions more complex. A little win is better than hours spent troubleshooting.
Video
Please note: English captions are enabled by default (click on “CC” in the video player to disable). Also, you can click on the “gear” icon to manage quality and playback speed. Enjoy!
If you joined already, please log in.
Otherwise, here is why you should join the Club.
Useful Links
WooCommerce Visual Hook Guide: My Account Pages
Related Snippets
WooCommerce: Add Privacy Policy Consent @ My Account Registration
WooCommerce: Add Select Field to “My Account” Register Form
WooCommerce: Add First & Last Name to My Account Register Form
WooCommerce: Add Content @ My Account Register / Login Page
Hi Rodolfo – We have a custom thank you page that displays after an order is completed. How can I change the my-account menu link (which we display as Login / Register) to show Logout if the shopper is logged in? and then redirect them to the site home page?
Really excellent content, thank you!
Hello Louise, you could give this a go: https://www.businessbloomer.com/woocommerce-rename-my-account-menu-label-if-logged-out/
Hi Rodolfo – I read that option previously and I see from your site that you change the Account menu item to Login when the customer is logged out, and then back to Account when the customer is logged in.
What I am wondering instead, for customer simplicity and faster access to the logout click, is there a way to present a logout menu item at the top of our thank you page so that with one click the customer may logout out?
Or, even better, is there a way to automatically logout the customer after they have completed a purchase? We can then post a note explaining that they are logged out and offer a login menu-option on the custom Thank You for Your Order page? In this instance, we would make use of your conditional Login snippet, and a second snippet with conditional logout?
We have had customers ask for a more evident and faster logout so that they can secure their account.
—-
Even though it isn’t intuitive, I expect that the menu name could be changed to Logout instead of Account (even though the link would direct the customer to the account page, where they would then navigate to the logout) and then your snippet would accomplish the intended action from the customer. But on a cell phone, this is just another scroll and time wasted?
Thank you
Yes, let me look into this!
Whatever I’m testing, it kinda requires also a redirect away from the thank you page because there is no way to intercept and prevent the autologin.
You can print a logout button on the thank you page with something like this:
Is there a way to insert ‘shortcodes’ into tabs, pulling in various account content, eg tab for orders, tab for dashboard etc.
I am building in Oxygen Builder and would like to output the account page content in a tabbed area.
Yes Amanda! Check out https://developer.wordpress.org/reference/functions/do_shortcode/ documentation to “print” a shortcode via PHP. You will need to, also, build a shortcode – here’s an example: https://www.businessbloomer.com/woocommerce-recently-viewed-products-shortcode/
Let me know!