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
<script type="text/javascript"> | |
jQuery(function() { | |
jQuery('#element-ID').hide().delay(5000).fadeIn(2200); | |
}); | |
</script> |
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
<?php | |
if (($wp_query->current_post + 1) < ($wp_query->post_count)) { | |
echo '<div class="post-item-divider">Post Divider</div>'; | |
} |
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
<?php | |
function turn_post_into_article($translated){ | |
$translated = str_ireplace('Post', 'Article', $translated); | |
return $translated; | |
} | |
add_filter('gettext', 'turn_post_into_article'); | |
add_filter('ngettext', 'turn_post_into_article'); |
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
<?php | |
// Enqueue custom stylesheet in child theme directory | |
function intw_custom_styles() { | |
wp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/custom.css', '1.0.0', 'all' ); | |
} | |
add_action('wp_enqueue_scripts', 'intw_custom_styles'); |
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
<?php | |
/*Template Name: Blank */ | |
function render_content() { | |
//CODE and INFORMATION GOES IN THIS FUNCTION | |
} | |
add_action( 'builder_layout_engine_render_content', 'render_content' ); |
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
.gform_footer.top_label { | |
float: right; | |
margin: -45px 0 0 0; | |
} |
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
input::-webkit-input-placeholder { /* Webkit - Yes, double :: is correct! */ | |
color: #eaeaea; | |
} | |
input:-moz-placeholder { /* Firefox 4-18 */ | |
color: #eaeaea; | |
} | |
input::-moz-placeholder{ /* Firefox 19+ */ | |
color: #eaeaea; | |
} | |
input:-ms-input-placeholder { /* IE 10+ */ |
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
<?php | |
// Shortcode: [SHORTCODE_TAG] | |
add_shortcode('SHORTCODE_TAG', 'intw_shortcode_SHORTCODE_TAG'); | |
function intw_shortcode_SHORTCODE_TAG($atts) { | |
extract( shortcode_atts( array( | |
'att1' => 'DEFAULT_VALUE', | |
'att2' => 'DEFAULT_VALUE', | |
), $atts ) ); | |
ob_start(); ?> |
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
<?php | |
// Add custom CSS class to <body> tag | |
add_filter('body_class','intw_body_class'); | |
function intw_body_class($classes) { | |
$url = get_bloginfo('url'); | |
if( ($url == 'http://siteA.com') || ($url == 'http://devserver.com/siteA') ) { | |
$classes[] = 'siteA'; | |
return $classes; | |
} elseif ( ($url == 'http://siteB.com') || ($url == 'http://devserver.com/siteB') ) { |