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
//line 251 of includes/views/single-listing.php | |
echo '<h5>Tagged Features</h5><ul class="tagged-features">'; | |
echo get_the_term_list( get_the_ID(), 'features', '<li>', '</li><li>', '</li>' ); | |
echo '</ul><!-- .tagged-features -->'; | |
// for displaying the term image | |
<?php |
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
//* Add Trip Advisor Icon to Simple Social Icons | |
add_filter( 'simple_social_default_profiles', 'custom_simple_social_default_profiles' ); | |
function custom_simple_social_default_profiles() { | |
$glyphs = array( | |
'tripadvisor' => '<img src="http://bb.angiemeekerdesigns.com/wp-content/uploads/2014/11/tripadvisor-xxl.png" alt="Trip Advisor">', | |
'email' => '', | |
'facebook' => '', | |
'flickr' => '', | |
'gplus' => '', | |
'instagram' => '', |
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
echo '<h5>Tagged Features</h5><ul class="tagged-features">'; | |
$terms = apply_filters( 'taxonomy-images-list-the-terms', '', array( | |
'taxonomy' => 'features', | |
'image_size' => 'detail', | |
) ); | |
foreach( (array) $terms as $term){ | |
echo $term; | |
}; |
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
// WooCommerce Display Stock Availability | |
add_action( 'woocommerce_single_product_summary', 'wcs_stock_text_shop_page', 25 ); | |
//create our function | |
function wcs_stock_text_shop_page() { | |
//returns an array with 2 items availability and class for CSS | |
global $product; | |
$availability = $product->get_availability(); | |
//check if availability in the array = string 'Out of Stock' | |
//if so display on page.//if you want to display the 'in stock' messages as well just leave out this, == 'Out of stock' | |
if ( $availability['availability']) { |
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
add_filter( 'gform_export_fields', 'add_fields', 10, 1 ); | |
function add_fields( $form ) { | |
array_push( $form['fields'], array( 'id' => 'orderid', 'label' => __( 'Order ID', 'gravityforms' ) ) ); | |
return $form; | |
} | |
add_filter( 'gform_export_field_value', 'set_export_values', 10, 4 ); | |
function set_export_values( $value, $form_id, $field_id, $lead ) { | |
switch( $field_id ) { |
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
WORDPRESS 201 OUTLINE | |
TEMPLATE HIERARCHY | |
• https://developer.wordpress.org/themes/basics/template-hierarchy/ | |
THE LOOP | |
• https://codex.wordpress.org/The_Loop | |
• Resetting the Loop | |
• Multiple Loops on one page | |
HOOKS, ACTIONS, FILTERS |
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
The WordPress Community Intro | |
Installing WordPress | |
House illustration | |
Host = Land | |
Domain = address | |
Email = mailbox | |
WordPress = house | |
Themes = interior design | |
Plugins = the FROG or Pool | |
WordPress.com vs WordPress.org |
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 if (has_term (‘gardening’, ‘topics’)) : ?> | |
<p>This is the text to describe gardening</p> | |
<?php elseif (has_term(‘cooking,’ topics')) : ?> | |
<p>This is the text to describe cooking</p> | |
<?php else : ?> | |
<p>This is some generic text to describe all other taxonomy term pages, I could be left blank</p> | |
<?php endif; ?> |
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
if (window.timerX) clearInterval(window.timerX); | |
window.timerX = setInterval(function() | |
{ | |
if (vwo_$('#om-YOUR-OPTIN-SLUG').length) | |
{ | |
vwo_$('#om-YOUR-OPTIN-SLUG').remove(); // script S1 here. | |
clearInterval(window.timerX); | |
} | |
}, 100); |
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
We don't have a method to do this in the builder, but it can be done with some custom JS using our API. Unfortunately, we don't provide further support for this method, so you may need to have your developer take a look to ensure it works as expected for your website. | |
The way to do this is simple: | |
document.addEventListener('om.Types.init', event => { | |
event.detail.Types.Type.bgClose = false; | |
}); | |
If a customer wants to do this on a case-by-case basis, they can adjust to check the campaign id specifically: | |
document.addEventListener('om.Types.init', event => { |