Title: View Online button
Last modified: October 3, 2017

---

# View Online button

 *  Resolved [xarliebrown](https://wordpress.org/support/users/xarliebrown/)
 * (@xarliebrown)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/view-online-button/)
 * Hi again,
 * Is it posible to disable the button “view online” from the mail sent with the
   pdf invoice? I would like to send them to clients only in pdf.
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [slicedsupport](https://wordpress.org/support/users/slicedsupport/)
 * (@slicedsupport)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/view-online-button/#post-9568701)
 * Hello
 * It’s possible by [modifying](https://slicedinvoices.com/support/quote-invoice-templates/)
   the original template. But please keep in mind that you have to make a copy of
   it into your theme folder so your original template will be safe when you update
   Sliced Invoices plugin.
 *  Plugin Author [SlicedInvoices](https://wordpress.org/support/users/slicedinvoices/)
 * (@slicedinvoices)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/view-online-button/#post-9628398)
 * There is some example code which may help you on our Developers pages, here: 
   [https://slicedinvoices.com/developers/code-snippets/](https://slicedinvoices.com/developers/code-snippets/)
 * Specifically look for the code under “Example of using filters to customize email
   header and footer templates”. The “view online” button is actually part of the
   footer template, so you could remove it by inserting on your own custom footer.
 * For example, if you take the custom footer code from the page I just mentioned,
   and you delete the button’s section of code, you would get something like this:
 *     ```
       add_filter( 'sliced_email_footer', 'sliced_custom_email_footer' );
       function sliced_custom_email_footer() {
   
       	$settings = get_option( 'sliced_emails' );
   
       	$email_footer =  "</div><!-- End body_content_inner -->
       												</td>
       															</tr>
       													  </table><!-- End Content -->
       												 </td>
       											</tr>
       									  </table><!-- End Body -->
       								 </td>
       							</tr>
       						<tr>
       								<td align='center' valign='top' style='background:#f6f6f6;color:#444444;'>
       									  <!-- Footer -->
       									<table border='0' cellpadding='10' cellspacing='0' width='600' id='sliced_footer' >
       									<tr>
       										<td valign='top'>
       												 <table border='0' cellpadding='10' cellspacing='0' width='100%'>
       												 <tr>
       													  <td colspan='2' valign='middle' id='credit'>";
       														$email_footer .= wpautop( wp_kses_post( stripslashes( $settings['footer'] ) ) ) . "</td>
       												 </tr>
       												 </table>
       											</td>
       									  </tr>
       									  </table><!-- End Footer -->
       								 </td>
       							</tr>
       					  </table>
       				 </td>
       			</tr>
       	  </table>
       	  </div><!-- End Sliced Wrapper -->
       	 </body>
       	</html>";
   
       	return $email_footer;
       }
       ```
   
 * Hope that helps!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘View Online button’ is closed to new replies.

 * ![](https://ps.w.org/sliced-invoices/assets/icon.svg?rev=1314180)
 * [Sliced Invoices - WordPress Invoice Plugin](https://wordpress.org/plugins/sliced-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sliced-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sliced-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/sliced-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sliced-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sliced-invoices/reviews/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 2 replies
 * 3 participants
 * Last reply from: [SlicedInvoices](https://wordpress.org/support/users/slicedinvoices/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/view-online-button/#post-9628398)
 * Status: resolved