Using A Google Custom Font For Display In The WordPress Editor

This is only for the display in TinyMCE and not to actually give the WordPress editor font selection. I had to get this working for a theme I was developing for the theme repository so that when creating a post you see the same thing in the backend as you would on the front.

Props goes out to Helen Hou-Sandi for her help over on Twitter.

So as you can see, you just need to use @import for the font to get it working within TinyMCE within editor-style.css.

@import url(;

I had originally searched for this method but couldn’t find anything on Google, the only thing I could find was actually adding in font selection to TinyMCE and not just for the display of the font.

Remove ShareThis Buttons From Post Excerpts

This is for the ShareThis WordPress plugin found at

In your theme’s functions.php file you’ll want to input the following code…

 remove_filter( 'get_the_excerpt', 'st_remove_st_add_link', 9 );
 remove_filter( 'the_excerpt', 'st_add_widget' );

This will remove the buttons from displaying on pages like the homepage, search results, category pages, etc etc. That is, assuming that your theme is coded to use the_excerpt() in template files.

If you only want to remove the buttons from say the homepage of your site, you could do something like…

if ( is_home() || is_front_page() ) {
remove_filter( 'get_the_excerpt', 'st_remove_st_add_link', 9 );
remove_filter( 'the_excerpt', 'st_add_widget' );

EVGA GeForce GTX 560 Ti vs. 580 DS Superclocked

EVGA Geforce 560Ti versus 580DS Superclocked video cards

Comparing the stats it’d be really hard to justify spending an extra $200 just for a few extra pixel pipelines and some memory bandwidth. Granted the 580DS also support 2/3/4 Way SLI but setups like that really only show their true differences in software benchmarking systems.

I’d easily say that a single 560Ti could easily handle any of today’s games at their max settings assuming the other hardware was within the same level of course. Even the cheapest GTX 580 is $439 and unless you have money to burn or no common sense the 580 series is a waste right now.

A little bit of overclocking to the 560 Ti would help put it even closer to the numbers of the superclocked 580.

Removing Footer Links From The MusicStar 2.0 WordPress Theme

If you want to use this theme but don’t want the links in the footer here are the instructions to remove them. You’ve most likely found that just deleting the links from the footer.php file doesn’t work as it brings up a nasty message and you can’t see your site.

I won’t go into explaining making file backups or how to use FTP or how to code in HTML. If you need to learn any of that there are plenty of other sites out there that teaches it.

I would advise making all of these edits at once and then uploading the changed files back into your WP install.

Open up footer.php and remove the offending links located on line 25.

Open up Themater.php located inside the /lib/ folder and comment out or remove line 512 completely. Also in Themater.php on line 513 you’ll need to remove


from within the sidebar code.

Next open up functions.php and remove line 67, the code looks like

function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Designed by: <a href="">Wordpress Themes</a> | Thanks to <a href="">Hostgator Coupon</a>, <a href="">Book of Mormon Broadway</a> and <a href="">Mary Poppins Broadway</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();

Finally open up header.php and on line 1 remove the following code

<?php function wp_initialize_the_theme() { if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish")) { wp_initialize_the_theme_message(); die; } } wp_initialize_the_theme(); ?>

With all of that removed the theme should be working and the links in the footer should be gone.

You’re welcome.

Custom Template Pagination Fix When Set As Front Page

Had a custom template that I set as the Front Page for a site but couldn’t get pagination working correctly. Fortunately found a fix thanks to Devin Price (@devinsays) over on a blog at

Going to repost the code here but all credit goes to Devin Price of

if ( get_query_var( 'paged' ) )
     $paged = get_query_var( 'paged' );
     elseif ( get_query_var( 'page' ) )
     $paged = get_query_var( 'page' );
     $paged = 1;