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 text/html if there are no listings found | |
// http://anythinggraphic.net/horizontal-rule-button-in-wordpress | |
jQuery(function($) { | |
if( $('body.post-type-archive-listing #content .listing').length ) { | |
} else { | |
$('body.post-type-archive-listing .archive-description, body.post-type-archive-listing .taxonomy-description').hide(); | |
$('body.post-type-archive-listing #content').append("<h3>No listings found</h3><p>We're sorry. We don't have properties that meet your current search requirements. Please search again using the search pull downs above or browse <a href='http://www.yourdomain.com/listings'>all our properties in South Jersey.</a></p><br>"); | |
} | |
}); |
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 HR button to TinyMCE | |
//* @link http://anythinggraphic.net/horizontal-rule-button-in-wordpress | |
add_filter("mce_buttons", "ag_horizontal_rule_button"); | |
function ag_horizontal_rule_button($buttons) { | |
$buttons[] = 'hr'; | |
return $buttons; | |
} |
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
<!-- http://anythinggraphic.net/sticky-navigation-and-animated-scrolling/ --> | |
<div class="sticky"> | |
<ul class="sticky-navigation"> | |
<a href="#section_1">Your Title or Text Here</a> | |
<a href="#section_2">Your Title or Text Here</a> | |
<a href="#section_3">Your Title or Text Here</a> | |
</ul> | |
</div> |
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 | |
//* Custom text for "No posts found" (Genesis Framework) | |
//* @link http://anythinggraphic.net/change-no-posts-text-string | |
add_filter(‘genesis_noposts_text’, ‘no_posts_found’); | |
function no_posts_found($text) { | |
$text = ‘<span class="if_you_want_one"’ . __(‘Your custom no posts found text goes here.’) . ‘</span>'; | |
} | |
return $text; | |
} |
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 custom styles to the Styles drop down menu in the TinyMCE Editor | |
//* @link http://anythinggraphic.net/custom-styles-in-wordpress-editor | |
function themeit_mce_buttons_2( $buttons ) { | |
array_unshift( $buttons, 'styleselect' ); | |
return $buttons; | |
} | |
add_filter( 'mce_buttons_2', 'themeit_mce_buttons_2' ); | |
function themeit_tiny_mce_before_init( $settings ) { |
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 have to tell Cloudflare to ignore Typekit scripts to stop the flash of text on load (FOUT). We apply that to our scripts, but you can find out more about the data attribute here: https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-my-script-s-in-Automatic-Mode- --> | |
<!-- Also read http://anythinggraphic.net/fix-for-fout-while-using-typekit-and-cloudflare --> | |
<script data-cfasync="false" type="text/javascript" src="http://use.typekit.com/xxxxxxx.js"></script> | |
<script data-cfasync="false" type="text/javascript">try{Typekit.load();}catch(e){}</script> | |
<style type="text/css"> | |
.wf-loading { | |
/* Hide the blog title and post titles while web fonts are loading */ | |
visibility: hidden; | |
} |
OlderNewer