Archive for the “Web Shots” Category

Mask Emails with JavaScript

Posted on March 18th, 2013 by webninjataylor

Some simple JavaScript to mask emails from spammers… function grimauld12(ww, f, h){ var cmd1 = “ma”; var cmd2 = “ilt”; var cmd3 = “o:”; location.href = cmd1+cmd2+cmd3+ww+”@”+f+”.”+h; }

Custom Bullets with CSS

Posted on March 18th, 2013 by webninjataylor

article ul li { background: url(‘../images/bullet2.gif’) no-repeat 0 3px; list-style-type: none; padding-left: 20px; }

Tags:
Posted in Web ShotsComments Off on Custom Bullets with CSS

Disabling Comments on a WordPress Site

Posted on March 18th, 2013 by webninjataylor

Disable under Settings > Discussion Remove this code from page.php… <?php comments_template( ”, true ); ?>

Tags:
Posted in Web ShotsComments Off on Disabling Comments on a WordPress Site

Customize WordPress Content Editor

Posted on March 18th, 2013 by webninjataylor

Add this to your theme’s functions.php file… /******** ADD CUSTOM STYLES TO TINYMCE EDITOR ********/ add_filter(‘mce_buttons_2’, ‘my_mce_buttons_2’); function my_mce_buttons_2($buttons) { array_unshift($buttons, ‘styleselect’); return $buttons; } add_filter(‘tiny_mce_before_init’, ‘my_mce_before_init’); function my_mce_before_init($settings) { $style_formats = array( array( ‘title’ => ‘Button’, ‘selector’ => ‘a’, ‘classes’ => ‘button’ ), array( ‘title’ => ‘Callout Box’, ‘block’ => ‘div’, ‘classes’ => ‘callout’, […]

Recommended WordPress Plugins

Posted on March 18th, 2013 by webninjataylor

WordPress Backup to Dropbox (for backing up data; otherwise, use GitHub for theme files) MarketPress Akismet Form Manager NextGEN Gallery NextGEN Galleryview ShareThis P3 – Plugin Performance Profiler: Analyzes how fast your page loads and which plugins are slowest

WordPress Theme Basics

Posted on March 18th, 2013 by webninjataylor

Installing online (via admin interface browsing to a zip file) is the same as uploading the unzipped theme directly Theme files can be edited directly within the admin interface style.css holds all the meta info the site needs functions.php is the heart of the theme Link to theme images using PHP to keep everything relative […]