Loading

post

HowTo: Add New Widgets to Genesis Child Themes

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...]

post

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...]

post

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...]

post

How To Make Free Mobile Web Apps

There are 1.2 BILLION mobile web users in the world. A staggering 25 out of every 100 potential US visitors to your website will never see it with a desktop computer, at least. Statistics collected in 2010 suggest that 25% of US people DO NOT access or infrequently access the desktop web. That figure was higher in China (30%) and slightly lower in the UK (22%). If your website attracts US customers and it lacks a mobile version of itself then you are losing up to 25% of your target audience because your content is badly dressed for mobile devices. What will those figures be now we are in … [Read more...]

All original content on these pages is fingerprinted and certified by Digiprove