Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add html to WooCommerce Storewide Notice
echo apply_filters( 'woocommerce_demo_store', '<p class="demo_store">' . '<a href ="https://www.facebook.com/groups/advanced.woocommerce/permalink/1087929507888134/">' . $notice .'</a>' . '</p>' );
@BurlesonBrad
Copy link
Author

BurlesonBrad commented May 28, 2015

Obviously, you'll want to change the link to whatever the actual page is. But that's line #374 of the wc-template-functions.php file which is located here /wp-content/plugins/woocommerce/includes
Original

echo apply_filters( 'woocommerce_demo_store', '<p class="demo_store">' . $notice  . '</p>' );

_Modified_

echo apply_filters( 'woocommerce_demo_store', '<p class="demo_store">' . '<a href ="https://www.facebook.com/groups/advanced.woocommerce/permalink/1087929507888134/">' . $notice .'</a>' . '</p>' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment