Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BurlesonBrad/bd816d5e8ee31098688c to your computer and use it in GitHub Desktop.
Save BurlesonBrad/bd816d5e8ee31098688c to your computer and use it in GitHub Desktop.
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

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