Hello, I hope you are doing well.
How can I add a button in the Dashboard section of the User Account?
This topic has 7 replies, 2 voices, and was last updated 1 weeks, 6 days ago ago by MAHDAR
Hello, I hope you are doing well.
How can I add a button in the Dashboard section of the User Account?
Dear @MAHDAR,
Thank you for reaching out.
You may try adding the following code to the functions.php
file located in your child theme:
add_action('woocommerce_account_dashboard', 'n2t_woocommerce_account_dashboard', 100);
function n2t_woocommerce_account_dashboard() {
?>
<!-- Your HTML code for the buttons will go here -->
<?php
}
We hope this solution proves helpful.
Best regards,
The 8Theme Team
Thank you for the guidance.
There is a floating element, and the user can move it by touching it.
Please watch the video.
How can I make it fixed?
Dear @MAHDAR,
This username is not working anymore.
Can you please double check?
Thank you!
Hello,
The previous login credentials have been activated.
Hi @MAHDAR,
Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:
@media (max-width: 600px){
.MyAccount-dashboard-buttons {
margin: 0 !important;
}
}
Kind regards,
The 8Theme Team
Thanks for the support! My topic “Adding a Button to the Dashboard” has been successfully resolved.
The issue related to '‘Adding a Button to the Dashboard’' has been successfully resolved, and the topic is now closed for further responses