Adding a Button to the Dashboard - by MAHDAR

This topic has 7 replies, 2 voices, and was last updated 1 weeks, 6 days ago ago by MAHDAR

  • Avatar: mahdar
    MAHDAR
    Participant
    May 17, 2025 at 05:54

    Hello, I hope you are doing well.

    How can I add a button in the Dashboard section of the User Account?

    Files is visible for topic creator and
    support staff only.
    6 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    May 18, 2025 at 15:39

    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

    Avatar: mahdar
    MAHDAR
    Participant
    May 18, 2025 at 17:00

    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?

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    May 19, 2025 at 09:32

    Dear @MAHDAR,

    This username is not working anymore.

    Can you please double check?

    Thank you!

    Please contact administrator
    for this information.
    Avatar: mahdar
    MAHDAR
    Participant
    May 19, 2025 at 10:24

    Hello,

    The previous login credentials have been activated.

    Avatar: Justin
    Luca Rossi
    Support staff
    May 20, 2025 at 08:12

    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

    Avatar: mahdar
    MAHDAR
    Participant
    May 20, 2025 at 09:36

    Thanks for the support! My topic “Adding a Button to the Dashboard” has been successfully resolved.

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Adding a Button to the Dashboard’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.