Easier to do than adding a new custom menu to a Genesis child theme. Just a few lines of code in the child theme's functions.php file is all you need to add a new widget area anywhere within your WordPress site. Genesis uses 'hooks' to make it easy to latch code into the theme. A full list of Genesis hooks is available here. To add a new widget to a theme, we need to name the widget, tell WordPress the widget exists and tell Genesis where to put it. To show you how to do this, I'll show you a block of code to add a widget then I'll show you how the code works. Look at this code … [Read more...]
HowTo: Browser and OS Detection with PHP
A very quick PHP script for detecting browser/device and OS agent strings from the HTTP User Agent variable. This is not 100% reliable because surfers and bots sometimes hide or falsify the user agent string so please use with caution. Browser and OS Detection Script This script detects whether the OS/Device is Linux, MacOS, iPad, iPhone, Droid, Unix, Windows or anything else (caught in Unknown). It also detects whether the browser is Chrome, Firefox, Opera or Internet Explorer. The user agent string is stored in the variable $agent. The operating system or device is stored in the … [Read more...]
HowTo: Add New Menus to Genesis Themes
Adding additional navigation menus to Genesis themes is easy. This method creates custom navigation menus that you can customize as you would any other WordPress custom menu by visiting Appearance > Menus. We use a two-step method: Create a custom nav file Register the custom nav file in your child theme's functions.php file By repeating the method you can create as many custom menu navbars to Genesis child themes as you want. Step One: Create a Custom Nav File This creates a menu called customnavone with the unique ID of customnavone and unique class of customnavone in the … [Read more...]






Is Google Screwing Up?
No one can escape Google's relentless tweaks to catch spam and build search result accuracy. No one! Not even WPMU and JournalXtra. Panda, Penguin, Parrot... Okay, I made the last one up but the point is that Google is screwing up. When Penguin was released, WPMU's traffic dropped from over 8,000 daily visits to under 2,000 daily visits. At around the same time, JournalXtra's traffic dropped from over 1,000 daily visits to around 500 daily visits. WPMU uses white hat SEO techniques. JournalXtra is white hat. So what is going on? In an article at WebsiteProNews: Last week, Farmer … [Read more...]