This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ul.social{ | |
| display: flex; | |
| max-width: 160px; | |
| justify-content: space-between; | |
| li{ | |
| list-style: none; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ========================================================================= | |
| // REMOVE STOREFRONT FOOTER CREDIT TEXT | |
| // ========================================================================= | |
| function remove_sf_actions() { | |
| remove_action( 'storefront_footer', 'storefront_credit', 20); | |
| } | |
| add_action( 'init', 'remove_sf_actions' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ========================================================================= | |
| // CUSTOM FOOTER STOREFRONT | |
| // ========================================================================= | |
| function storefront_custom_footer() { | |
| include('templates/footer.php'); | |
| } | |
| add_action( 'storefront_footer', 'storefront_custom_footer' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ========================================================================= | |
| // FOOTER COPYRIGHT | |
| // ========================================================================= | |
| function storefront_footer_copyright(){ | |
| echo '<div class="copyright">'.date('Y').' © YOUR COMANY</div>'; | |
| } | |
| add_action( 'storefront_after_footer', 'storefront_footer_copyright' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* SITE-FOOTER | |
| /************************************/ | |
| .site-footer { | |
| padding-top: 60px !important; | |
| .grid-item{ | |
| h4{ | |
| text-align: center; | |
| margin-bottom: 30px; | |
| } | |
| p{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ========================================================================= | |
| // STOREFRONT COVER - HOMEPAGE | |
| // ========================================================================= | |
| function add_storefront_cover(){ | |
| if ( is_front_page() ){ | |
| include('templates/cover.php'); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ========================================================================= | |
| // ADD FEATURED IMAGE TO GENESIS SINGLE | |
| // ========================================================================= | |
| function add_featured_img_to_single_pages(){ | |
| echo get_the_post_thumbnail( $page->ID, 'full' ); | |
| } | |
| add_action('genesis_entry_content', 'add_featured_img_to_single_pages', 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ========================================================================= | |
| // CHANGE PREVIOUS / NEXT LINK TEXT IN GENESIS PAGINATION | |
| // ========================================================================= | |
| function change_previous_link_text($text) { | |
| $text = 'Custom Previous Text'; | |
| return $text; | |
| } | |
| add_filter( 'genesis_prev_link_text', 'change_previous_link_text' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ========================================================================= | |
| // ADD PAYMENT METHOD BULK FILTER FOR ORDERS | |
| // ========================================================================= | |
| function add_filter_by_payment_method_orders() { | |
| global $typenow; | |
| if ( 'shop_order' === $typenow ) { | |
| // get all payment methods | |
| $gateways = WC()->payment_gateways->payment_gateways(); |