How to Create CSS conditional style sheets for Internet Explorer in WordPress using a child theme or parent theme. Either manually in the header.php file or the preferred WordPress way registered and enqueued as a style via the functions.php way. The Manual Header Way 1) Open the header.php to your parent or child theme 2) …
Read More
Silent Google Panda or Penguin Algorithm Rollouts to Search Results
Sometimes Google will make an announcement of an algorithm rollout or change via a cryptic comment from Matt Cutts on Twitter, on his blog or via the Google Blog for Webmasters. This has been true of recent Hummingbird, Penguin or Panda algorithm updates, but what about when there is no announcement and your search traffic increases suddenly …
Read More
Add Javascript and CSS files to the Head and Footer in WordPress
Getting it right in the head As a hack every now and then I would whack in a javascript or CSS link hardcoded directly into the header.php or footer.php template files of a WordPress theme. This really is a no no! as this can result in script conflicts or duplications or just downright badness, there …
Read More
Create a Login/Logout Link in WordPress
To create a login/logout link in WordPress you can use a snippet of php… <?php if (is_user_logged_in()) : ?> <a href=”<?php echo wp_logout_url(get_permalink()); ?>”>Logout</a> <?php else : ?> <a href=”<?php echo wp_login_url(get_permalink()); ?>”>Login</a> <?php endif;?>
Create an extra Widget Areas in WordPress Twenty Twelve
WordPress themes come with a certain number of widgets in parts of the web page, for example the 2012 theme has a sidebar and 2 home page widget areas, you can make many more areas of the layout widgetised by creating extra widget functions and placing the PHP code for those functions in the theme …
Read More
Create a Widgetized Custom Home Page in Genesis Child Theme WordPress
Creating a customised all widgets / widgetized home page of a Genesis Child Theme. Analysing the Layout The layout above does not lend itself to the default layouts in Genesis, it really needs to be set up with widgetised areas in the WordPress dashboard so a non-technical user can update content. The layout is a …
Read More
Get PHP and Shortcode to Work in WordPress Widgets
Getting PHP Working in Widgets By default any PHP code won’t execute in WordPress widgets or sidebars, you can probably get by with a plugin but you can also add a function in your themes function.php file to allow PHP to run, what you need to declare is a custom function and filter. //Allow PHP to …
Read More
Get Apache, MySQL, PHP and phpMyAdmin working on OSX 10.9 Mavericks
Get your Local Web Development Server Up & Running on OSX 10.9 Mavericks With the new OSX Mavericks being installed faster than any predecessor, getting the AMP stack running on OSX 10.9 Mavericks is is pretty much the same as on OS X Mountain Lion 10.8. This tutorial will go through the process on getting Apache, MySQL, PHP and phpMyAdmin running on the …
Read More