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
/* set default styles for draggable area */ | |
.drag-mask { | |
float: left; | |
width: 100%; | |
height: 120px; | |
overflow: hidden; | |
} | |
.drag-container { | |
width: 2000px; | |
} |
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: Archives for a category | |
Plugin URI: http://kwebble.com/blog/2007_08_15/archives_for_a_category | |
Description: Adds a cat parameter to wp_get_archives() to limit the posts used to generate the archive links to one or more categories. | |
Author: Rob Schlüter | |
Author URI: http://kwebble.com/ | |
Version: 1.4b | |
Copyright |
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
/%category%/%postname%/ |
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
-webkit-font-smoothing: antialiased !important; |
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 | |
/* | |
* Remove empty <p> tags from the_content() input | |
* | |
*/ | |
add_filter('the_content', 'remove_empty_p', 20, 1); | |
function remove_empty_p($content){ | |
$content = force_balance_tags($content); | |
return preg_replace('#<p>\s*+(<br\s*/*>)?\s*</p>#i', '', $content); | |
} |
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 | |
/** | |
* Set up faux the_content() simulation | |
* | |
* You can use this to simulate the_content() through a shortcode. Simply | |
* add the shortcode [faux] on any page in wp-admin and publish. Then, | |
* Then, make all your changes in your favorite text editor in the includes/faux-content.php | |
* file. Once finished, paste the contents of includes/faux-content.php into the page in wp-admin. | |
*/ | |
function faux_the_content_() { |
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 div section within the content as a short code. | |
* | |
* This allows users to edit content in visual mode without stripping | |
* out necessary but hidden <div> tags. | |
* | |
* Example usages: | |
* [section]My Content[/section] = <div>My Content</div> | |
* [section width='6']My Content[/section] = <div class="col6">My Content</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 | |
/* This can go right above wp_head(); in header.php */ | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', 'http://code.jquery.com/jquery-1.7.1.min.js'); | |
wp_enqueue_script('jquery'); |
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 | |
//get the defualt query. | |
global $query_string; | |
//use the defualt query, but add your modifications connected by &. | |
query_posts($query_string . '&your_mods=awesome'); | |
?> |
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 | |
//hostname based google code, only run if on live site - By Tom Horak, modified by Tomas Mulder. | |
//placed right before closing head tag according to google best practice: https://support.google.com/analytics/answer/1008080?hl=en | |
$hostname = $_SERVER['HTTP_HOST']; //dev.zenman.com | localhost | Live server | etc.. | |
switch ($hostname) { | |
case 'localhost': //do nothing | |
//echo '<!-- no google analytics code -->'; | |
break; | |
case 'localhost:8888': //do nothing |
OlderNewer