Skip to content

Instantly share code, notes, and snippets.

@elanasparkle
elanasparkle / functions.php
Created May 9, 2025 15:29
Change Sprout Invoices font to Google font
<?php
function si_add_css_sprout() {
?>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tangerine">
<style type="text/css" media="screen">
body {
font-family: 'Tangerine', serif;
}
@elanasparkle
elanasparkle / functions.php
Last active May 9, 2025 15:28
Letter and Word spacing for Sprout Invoices
<?php
function si_add_css_sprout() {
?>
<style type="text/css" media="screen">
#outer_doc_wrap {
word-spacing: 3px !important;
letter-spacing: 1px !important;
}
@elanasparkle
elanasparkle / functions.php
Created May 6, 2025 17:05
Sort filter columns in invoice edit
<?php
add_filter( 'manage_edit-sa_invoice_sortable_columns', 'SI_register_sortable_columns', 10, 2 );
add_filter( 'manage_edit-sa_estimate_sortable_columns', 'SI_register_sortable_columns', 10, 2 );
function SI_register_sortable_columns( $columns ) {
$columns['dates'] = 'dates';
$columns['number'] = 'column-number';
@elanasparkle
elanasparkle / style.css
Created March 19, 2025 14:38
Button Padding CSS
@media (max-width:767px) {
.btn {
padding-left: 10px !important;
padding-right: 10px !important;
}
}
@media (min-width: 768px) {
.btn{
padding-left: 40px !important;
@elanasparkle
elanasparkle / functions.php
Created February 27, 2025 18:31
Original theme dropdown change CSS.
<?php
function si_sprout_css_udpate() {
?>
<style type="text/css" media="screen">
.si-dropdown-menu{
min-width: 388px !important;
max-width: 588px !important;
@elanasparkle
elanasparkle / functions.php
Created February 26, 2025 16:52
Remove all BoldGrid Total Upkeep jobs from queue
<?php
add_action( 'init', function() {
$jobs = get_option( 'boldgrid_backup_jobs', array() );
if( ! empty ( $jobs ) ) {
delete_option( 'boldgrid_backup_jobs' );
}
} );
@elanasparkle
elanasparkle / functions.php
Created February 25, 2025 15:42
Remove Tax / Discount column on lineitems
<?php
add_filter( 'si_line_item_columns', 'remove_tax_column' );
function remove_tax_column( $columns ) {
set( $columns['tax'] ); // Unset the 'tax' column
return $columns; // Return the modified columns array
}
@elanasparkle
elanasparkle / functions.php
Created February 19, 2025 16:33
Change due by to Due on
<?php
function si_change_strings( $translations, $text, $domain ) {
if ( 'sprout-invoices' === $domain ) {
$translations = str_replace( 'Due by', 'Due on', $translations );
}
return $translations;
}
add_filter( 'gettext', 'si_change_strings', 10, 3 );
@elanasparkle
elanasparkle / functions.php
Created February 12, 2025 18:14
Change WooCommerce Checkout Text
<?php
function si_change_woo_text( $translations, $text, $domain ) {
if ( 'sprout-invoices' === $domain ) {
$translations = str_replace( 'WooCommerce Checkout', 'Please click here to proceed to payment ', $translations );
}
return $translations;
}
add_filter( 'gettext', 'si_change_woo_text', 10, 3 );
@elanasparkle
elanasparkle / file.js
Created February 6, 2025 16:48
Crio Scroll to Top
add_filter( 'boldgrid_theme_framework_config', function( $configs ) {
$configs['scripts']['options']['goup']['goupSpeed'] = 0;
return $configs;
}, 10, 1 );