There should be a get_current_template WordPress function.

I some­times like to do cer­tain things in WordPress themes when cer­tain tem­plates are active. This func­tion makes it pos­si­ble. Add it to your functions.php file and it will return the cur­rent tem­plate name when called. function get_current_template() { global $wp_query; $template_name = str_replace('.php','',get_post_meta($wp_query->post->ID,'_wp_page_template',true)); if ( $template_name ) return $template_name; else return false; } … continue reading.

Unique class for WordPress menu items when they have children.

I asked this ques­tion today work­ing on a site and found many answers: How can I add a class to a WordPress menu item only if it has children? Most of the answers involved using jQuery. I could have writ­ten some­thing myself to eas­ily detect if the first <ul> had a child <ul> some­where down … continue reading.

How will Google’s penalties for overly optimized sites affect you?

Folks have been talk­ing about Google’s new penal­ties for ‘overly opti­mized’ sites this week. This arti­cle from CNET news is all over the Interwebs strik­ing fear in the hearts of black-hat SEOers and web­mas­ters … here and in a galaxy far, far away (read to the end to get this ref­er­ence). Organic search results dooms­day … continue reading.

TheftStopper Is Our Latest Portfolio Piece

We are happy to announce that TheftStopper’s new site is now live. Yes, the new and very much improved site ded­i­cated to pre-employment test­ing, solv­ing employee theft and deter­min­ing infi­delity is ready for mass Internet con­sump­tion. We hope you all enjoy view­ing it as much as we did cre­at­ing it. The new TheftStopper site is an … continue reading.

So you need an events list?

“WordPress can do it.” At TechStudio, we love to use this phrase. When a client comes to us with a request for func­tion­al­ity on their site, WordPress imple­men­ta­tion allows use to answer with an emphatic yes. Beach Banners loves their new events list. One of our beloved clients asked us recently for an update to … continue reading.

What Google’s New Social Search Means For SEO

This week, Google announced some big changes to its search engine results page (SERP) — Google+ results will now be incor­po­rated, chang­ing the way results are pri­or­i­tized and deliv­ered to the user.  From now on, users will have the option of allow­ing per­son­al­ized social data to be dis­played in addi­tion to their reg­u­lar SERP. Dubbed “Search, … continue reading.

Announcing the launch of the NFRMC Senior Healthcare Centers’ new site

We’re pleased to announce that we’ve launched a newly redesigned site for North Florida Regional Medical Center’s Senior Healthcare Centers. The site has been designed to be aes­thet­i­cally pleas­ing and effort­lessly use­ful by any­one from an advanced Internet browser to the newest novice. The site is also screen-reader friendly for the visu­ally impaired. Like all … continue reading.

Stop SOPA/PIPA

The TechStudio team rep­re­sents a wide range of view­points, just like the peo­ple that live in the com­mu­ni­ties we are a part of. But we believe that an issue has arisen that spans those view­points and demands the action of all of us to pro­tect the foun­da­tion of our industry. The time has come to … continue reading.

Migrating Sites Using 301 Redirects

Since I posted this com­ment on css-tricks.com I’ve referred back to it a few times for a fresher on exactly how I like to do 301 redi­rects when migrat­ing sites. Just last week I had a cus­tomer change their domain. It was a great oppor­tu­nity to clean up their MySQL data­base and put the site … continue reading.

Vzaar Embed Code Update for iOS 5 Compatibility

All TechStudio’s sites use Vzaar as a host for videos. If you have any videos on your site, you may have noticed that they play cleanly on all plat­forms, includ­ing iOS, the oper­at­ing sys­tem run­ning on Apple’s mobile devices. Very soon, Apple will be releas­ing its 5th gen­er­a­tion oper­a­tion sys­tem, iOS 5. As part of … continue reading.

Goodbye Version 3, Hello Version 4, Anticipating Version 5

It’s hard to believe that we’re on ver­sion 4 of the TechStudio web site. It seems like just yes­ter­day we were start­ing this busi­ness. Time has passed by quickly because we’ve had the delight of stay­ing busy work­ing on project for our clients. It’s even been hard to find time to build ver­sion 4 in … continue reading.

Configuring Custom Menus In A WordPress Theme

It’s easy and incred­i­bly use­ful to set up man­age­able appear­ance menus in WordPress. The process has three com­po­nents. First, the menus must be reg­is­tered in the theme’s functions.php file. Next, the menus are called within the theme. Finally, the menus can be cre­ated and con­fig­ured in WordPress under Appearance > Menus and applied to the … continue reading.

Loading The Latest Version of jQuery in WordPress

There are a lot of arti­cles out there about how to load jQuery in your WordPress theme. This is the method that I pre­fer. It allows me to avoid many con­flicts and prob­lems caused by old ver­sions of jQuery. Remember, it’s not a good idea to call jQuery right from header.php. I use the fol­low­ing … continue reading.

The Best Way To Make Links Open In A New Window

The old method for set­ting links up to open in a new win­dow causes val­i­da­tion errors in xHTML. <a href="#" target="_blank">link</a> The right way is to use the fol­low­ing markup. <a href="#" rel="external">link</a> But for that markup to work the fol­low­ing Javascript must be included in your document. function externalLinks() { if (!document.getElementsByTagName) return; var anchors … continue reading.

Use Google Viewer For Embedding Files On Your WordPress Site

Lately I’ve had a cou­ple of clients hav­ing com­plaints from end-users when they embed PDF or other doc­u­ment files on their WordPress blogs or sites. All browsers respond in slightly dif­fer­ent ways when you hand it a PDF file with a MIME type mis­match. Some send it straight to the local app with proper file … continue reading.

What Is Search Engine Optimization?

Search engine optimization, or SEO, is a service which aims to improve the placement of a web site on a search engine's organic results page. The higher a site appears in the search results list, the more visitors it will receive from the search engine. … continue reading.