I sometimes like to do certain things in WordPress themes when certain templates are active. This function makes it possible. Add it to your functions.php file and it will return the current template 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.
I asked this question today working 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 written something myself to easily detect if the first <ul> had a child <ul> somewhere down … continue reading.
Folks have been talking about Google’s new penalties for ‘overly optimized’ sites this week. This article from CNET news is all over the Interwebs striking fear in the hearts of black-hat SEOers and webmasters … here and in a galaxy far, far away (read to the end to get this reference). Organic search results doomsday … continue reading.
We are happy to announce that TheftStopper’s new site is now live. Yes, the new and very much improved site dedicated to pre-employment testing, solving employee theft and determining infidelity is ready for mass Internet consumption. We hope you all enjoy viewing it as much as we did creating it. The new TheftStopper site is an … continue reading.
“WordPress can do it.” At TechStudio, we love to use this phrase. When a client comes to us with a request for functionality on their site, WordPress implementation 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.
This week, Google announced some big changes to its search engine results page (SERP) — Google+ results will now be incorporated, changing the way results are prioritized and delivered to the user. From now on, users will have the option of allowing personalized social data to be displayed in addition to their regular SERP. Dubbed “Search, … continue reading.
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 aesthetically pleasing and effortlessly useful by anyone from an advanced Internet browser to the newest novice. The site is also screen-reader friendly for the visually impaired. Like all … continue reading.
The TechStudio team represents a wide range of viewpoints, just like the people that live in the communities we are a part of. But we believe that an issue has arisen that spans those viewpoints and demands the action of all of us to protect the foundation of our industry. The time has come to … continue reading.
Since I posted this comment on css-tricks.com I’ve referred back to it a few times for a fresher on exactly how I like to do 301 redirects when migrating sites. Just last week I had a customer change their domain. It was a great opportunity to clean up their MySQL database and put the site … continue reading.
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 platforms, including iOS, the operating system running on Apple’s mobile devices. Very soon, Apple will be releasing its 5th generation operation system, iOS 5. As part of … continue reading.
It’s hard to believe that we’re on version 4 of the TechStudio web site. It seems like just yesterday we were starting this business. Time has passed by quickly because we’ve had the delight of staying busy working on project for our clients. It’s even been hard to find time to build version 4 in … continue reading.
It’s easy and incredibly useful to set up manageable appearance menus in WordPress. The process has three components. First, the menus must be registered in the theme’s functions.php file. Next, the menus are called within the theme. Finally, the menus can be created and configured in WordPress under Appearance > Menus and applied to the … continue reading.
There are a lot of articles out there about how to load jQuery in your WordPress theme. This is the method that I prefer. It allows me to avoid many conflicts and problems caused by old versions of jQuery. Remember, it’s not a good idea to call jQuery right from header.php. I use the following … continue reading.
The old method for setting links up to open in a new window causes validation errors in xHTML. <a href="#" target="_blank">link</a> The right way is to use the following markup. <a href="#" rel="external">link</a> But for that markup to work the following Javascript must be included in your document. function externalLinks() { if (!document.getElementsByTagName) return; var anchors … continue reading.
Lately I’ve had a couple of clients having complaints from end-users when they embed PDF or other document files on their WordPress blogs or sites. All browsers respond in slightly different ways when you hand it a PDF file with a MIME type mismatch. Some send it straight to the local app with proper file … continue reading.
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.
