Oder auch mit diesem Code Snippet Tutorial
Solved: https://generate.support/topic/add-button-to-my-account-page-woo/#post-1281
Geht auch mit GP-Elements > Hooks > Custom Hook woocommerce_account_dashboard
I have just added this code to the functions.php and styled the button via CSS:
function woo_custom_button() {
echo '<a class="woo_custom_button" href="#courses">Access your courses</a>';
}
add_action( 'woocommerce_account_dashboard', 'woo_custom_button' );
.woo_custom_button{
color:#fff;
background-color: var(--accent);
border-radius: 5px;
padding: 10px 20px;
text-decoration: none;
display: inline-block;
}
.woo_custom_button:hover {
color:#fff;
background-color: var(--contrast);
}
Adding a button to order details on ‘My Account’ page in WooCommerce – Stack Overflow
https://stackoverflow.com/questions/56832076/adding-a-button-to-order-details-on-my-account-page-in-woocommerce
WooCommerce My Account Menu
https://rudrastyh.com/woocommerce/my-account-menu.html
How to Customize My Account Page in WooCommerce
https://quadlayers.com/customize-my-account-page-woocommerce/