Hide button

This topic contains 4 replies, has 3 voices, and was last updated by  Eduardo Sanchez 5 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2758

    Eduardo Sanchez
    Buyer
    Post count: 110

    Hi,

    How can I hide the button “Receipts History” appearing on the top part of the invoices right next to the Print blue button?

    The issue is that sometimes the listing is done by myself, the customer pays for it but doesn’t create an account for himself so he can see all the prior customers / invoices when the receipt is emailed to him.

    Thanks,
    Eduardo

    #2767

    Alex Rollin
    Moderator
    Post count: 27815

    Thanks for writing in with your issue.
    The developers will look into that and let you know.

    #2771

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Please put the following code in functions.php file of currently active theme and let me know if it works for you or not:

    add_action('wpinv_invoice_print_head', 'wpinv_invoice_print_head_cb');
    function wpinv_invoice_print_head_cb(){
        ?>
        <style type="text/css">
            body.wpinv-print .wpinv-top-bar a.btn-warning {
                display: none;
            }
        </style>
        <?php
    }

    Regards,
    Patrik

    #2773

    Patrik
    Moderator
    Post count: 1971

    Hi,

    You can just put the below CSS code in Settings->Misc->Custom CSS->Invoice Template CSS and save it.

    body.wpinv-print .wpinv-top-bar a.btn-warning {
    display: none;
    }

    This will be easy for you.

    Regards,
    Patrik

    #2776

    Eduardo Sanchez
    Buyer
    Post count: 110

    Hi Patrick,

    Thank you for your two alternatives, the snippet worked fine but for some reason not the CSS which was my first option.

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket