This file contains 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 | |
// Show the Emergency Message, if it is set to "Yes". | |
if( get_field('show_the_emergency_notice') == 'yes' ): ?> | |
<div class="emergency"> | |
<div class="emergency-inner"><?php if ( get_field('icon') ): ?><?php the_field( 'icon' ); ?><?php endif; ?> <?php the_field('emergency_notice'); ?></div> | |
</div> | |
<?php endif; // end of Emergency Message ?> |
This file contains 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
[ | |
{ | |
"key": "group_5812148bf1470", | |
"title": "Emergency Notice", | |
"fields": [ | |
{ | |
"key": "field_581214f410f14", | |
"label": "About Emergency Notices", | |
"name": "", | |
"type": "message", |
This file contains 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 a message on the top of each product in the "Toys" category. | |
add_action( 'woocommerce_before_single_product', 'my_product_notice_function' ); | |
function my_product_notice_function() { // Custom function. | |
if ( is_product() && has_term( 'Toys', 'product_cat' ) ) { // Only run this code if the product is in the “Toys” category. | |
echo '<p><strong>Note: Place your order by December 20 and select 1-Day shipping for guaranteed holiday delivery!</strong></p>'; // Message we're adding to the top of the product page. |
This file contains 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 a message on the top of each product's page. | |
add_action( 'woocommerce_before_single_product', 'my_product_notice_function' ); | |
function my_product_notice_function() { // Custom function. | |
echo '<p><strong>Note: Place your order by December 20 and select 1-Day shipping for guaranteed holiday delivery!</strong></p>'; // Message we're adding to the top of each product page. | |
} | |
?> |
This file contains 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 | |
/* | |
Plugin Name: Handy Links Widget for WordPress | |
Plugin URI: https://www.karks.com | |
Description: Quick links to various website functionality and removal of some Dashboard clutter. | |
Version: 1.0 | |
Author: Eric Karkovack | |
Author URI: https://www.karks.com | |
Code culled from various sources, including the WordPress Codex. |
NewerOlder