Created
October 11, 2017 14:59
-
-
Save woogist/637af84f9f04a772a129c3008ca9bc18 to your computer and use it in GitHub Desktop.
Documentation: Storefront Actions example: Adding content below the featured product title
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
// Insert text below the Featured Products title | |
function add_featured_text_example() { | |
// Echo out content | |
echo '<p>' . esc_html__( 'These are definitely our best products to consider!', 'storefront' ) . '</p>'; | |
} | |
add_action( 'storefront_homepage_after_featured_products_title' , 'add_featured_text_example' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment