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
| // The is a simple method to detect if a browser is using an adblock derivative, and if it is, offering up a simple message to the visitor. The intent is to simply notify them of possible formatting issues but can be modified to offer a warning or to request that they disable it to view specific content. | |
| // =============================== | |
| // PART ONE | |
| // Add to site root as 'advertisement.js' | |
| // =============================== | |
| document.write('<div id="adblock"></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
| javascript:window.location='tweetbot:///post?text='+encodeURI("\""+document.title+"\" ")+encodeURI(window.location) |
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
| (?i)(Ravens|Bills|Bengals|Browns|Broncos|Texans|Colts|Jaguars|Chiefs|Dolphins|Patriots|jets|Raiders|Steelers|chargers|Titans|Cardinals|Falcons|Panthers|Bears|Cowboys|Lions|packers|Vikings|saints|giants|Eagles|49ers|Seahawks|rams|Buccaneers|Redskins) |
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
| // A few handy additions for your functions.php file - updated as necessary. | |
| // Hide admin bar on front-end when logged in | |
| add_filter('show_admin_bar', '__return_false'); | |
| // remove unwanted paragraphs around shortcode autoop (http://codex.wordpress.org/Function_Reference/wpautop) | |
| remove_filter( 'the_content', 'wpautop' ); | |
| remove_filter( 'the_excerpt', 'wpautop' ); | |
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 | |
| $args = array( 'posts_per_page' => 10, 'order' => 'ASC', 'orderby' => 'title' ); | |
| $rand_posts = get_posts( $args ); | |
| foreach ( $rand_posts as $post ) : | |
| setup_postdata( $post ); ?> | |
| <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> | |
| <?php endforeach; | |
| wp_reset_postdata(); | |
| ?> |
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
| <select id="statename"> | |
| <option value='AL'>Alabama</option> | |
| <option value='AK'>Alaska</option> | |
| <option value='AZ'>Arizona</option> | |
| <option value='AR'>Arkansas</option> | |
| <option value='CA'>California</option> | |
| <option value='CO'>Colorado</option> | |
| <option value='CT'>Connecticut</option> | |
| <option value='DE'>Delaware</option> | |
| <option value='FL'>Florida</option> |
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
| .div_name { | |
| position: absolute; | |
| width: 100px; | |
| height: 100px; | |
| top: 50%; | |
| left: 50%; | |
| margin-top: -50px; | |
| margin-left: -50px; | |
| } |
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 include (TEMPLATEPATH . '/filename.php'); ?> |
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
| /* Mozilla based browsers */ | |
| ::-moz-selection { | |
| background-color: #FFA; | |
| color: #000; | |
| } | |
| /* Works in Safari */ | |
| ::selection { | |
| background-color: #FFA; | |
| color: #000; | |
| } |
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
| /* Gravity forms error handling */ | |
| /* Default errors are not pleasant looking | |
| add a bit of FontAwesome and !important CSS to make it look a little better. */ | |
| /* As seen on www.BallPark.ws */ | |
| /* Comment below for any questions or additions */ | |
| /* ############################################### */ | |
| #gform_submit_button_1 { /* check your form number */ | |
| background-color: #3F6EB1 !important; |
NewerOlder