• Resolved bluebit

    (@bluebit)


    I’d like to remove or hide this message on the Woocommerce My Account Page:

    “From your account dashboard you can view your recent orders, manage your shipping and billing addresses, and edit your password and account details.”

    Is there a custom css code or php snippet I can use?

    • This topic was modified 5 years ago by bluebit.
Viewing 6 replies - 1 through 6 (of 6 total)
  • wprock

    (@wprock)

    Login to server via FTP or go to Cpanel -> File Manager

    1. Create a folder “woocommerce” inside your theme folder
    2. Create another new folder “myaccount” inside the “woocommerce” folder
    3. Go to plugins/woocommerce/templates/myaccount and copy the dashboard.php file
    4. Paste this file into yourthemefolder/woocommerce/myaccount folder
    5. Now edit the text and save the file

    Thread Starter bluebit

    (@bluebit)

    yes, but I don’t want to edit the text, I want to completely remove it or hide it and the padding too.

    • This reply was modified 5 years ago by bluebit.
    safnayardd

    (@safnayardd)

    You can remove or comment the line <p><?php
    printf(
    __( ‘From your account dashboard you can view your recent orders, manage your shipping and billing addresses, and edit your password and account details.’, ‘woocommerce’ ),
    esc_url( wc_get_endpoint_url( ‘orders’ ) ),
    esc_url( wc_get_endpoint_url( ‘edit-address’ ) ),
    esc_url( wc_get_endpoint_url( ‘edit-account’ ) )
    );
    ?></p>

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    I don’t recommend to edit the plugin files. There is no CSS class but the string is part of the language file so you can use any translation plugin to edit the english language file and remove it.

    Here is a screenshot of my Loco Translate. https://cld.wthms.co/IpKk2v

    You can also overwrite the template:

    Copy /wp-content/plugins/woocommerce/templates/my-account/dashboard.php >> /wp-content/themes/YOUR-ACTIVE-THEME/woocommerce/myaccount directory structure. Ignore this step if the directory already exists.

    Kind regards,

    Thread Starter bluebit

    (@bluebit)

    How can I remove the lines totally from locotranslate as the empty box cant be empty, it needs something to replace the text. But I don’t want to add text, i want it all gone, no text in the box. Empty space, but no spaces, just the entire lines removed.

    Navigate to your Plugin folder
    \wp-content\plugins\woocommerce\templates\myaccount
    Open dashboard.php file
    Just remove Lines from 34 to 41
    Whallaaaaa that default text is gone
    Note: backup your file before editing, incase anything wrong ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove on My Account Page the Default Text’ is closed to new replies.