Custom Taxonomies should be added to WordPress via a plugin so a theme is swapped the taxonomies are maintained. Taxonomies are either hierarchal similar to ‘Categories’ or flat, similar to ‘Tags’. You can assign custom taxonomies to regular posts as well as custom post types. Create the plugin header and file in /wp-content/plugins either as …
Read More
Find out how many database queries per pageload in WordPress
To find out how many WordPress mysql database queries a page requests and how long it takes the page to load whilst querying the database, you can add in a PHP function to a WordPress hook to find out. This can be displayed in either the source code of the html or rendered on the …
Read More
Adding a DashIcon to a Custom Post Type in WordPress
Once you have Custom Post Types set up and available via the WordPress Dashboard you can assign a DashIcon to them , these are the icons fonts already loaded and in use in the WordPress Dashboard. Selection of the icon can be done here. So in the above example I have chosen the person icon …
Read More
Remove the HTML Tags and Attributes from Comments Box in Genesis Child Theme
By default in Genesis Child theme and general WordPress themes, html tags and attributes in the Comments field are displayed for users to show what html tags they can use, I find a lot of clients just want to hide those HTML tags as they think it may discourage some users from leaving comments. To hide …
Read More
Fastest Way of Installing Drupal 7.26 on Mac OS X 10.9 , 10.8, 10.7
Fastest Way to install the latest Drupal 7 version on Mac OS X Mavericks 10.9 or 10.8 Drupal is a quality CMS application and is as simple or complex as your needs vary, it runs on the same foundations that Mac OS X Mavericks or Mountain Lion, Lion or Snow Leopard provides similar to …
Read More
Create a Footer Area with Left and Right Widgets in Genesis Child Theme
In the Sample Genesis Theme or a vanilla Child Theme, there is no actual Footer Widget Area, rather just a credit & copyright line with links. This is how to create a new footer area with a left and right widgets, these code snippets need to be added to the child theme functions.php file …
Read More
Make a Read More Link with Dashicons for Posts in Genesis Child Theme
By default in a Genesis Child and any WordPress theme the ‘read more‘ link in a post is not a link and is an ellipse surrounded by square brackets[…] There is a WordPress filter that allows this to be changed called excerpt_more, a function needs to be created and then passed into that filter. This …
Read More
Add a Full Width Row Above Footer Widgets in Genesis Child Theme
How to add a full width content row in the area directly above the footer widgets in a Genesis Child theme. In the layout above, the three footer widgets are used for 3 products, but a headline needs to straddle across all 3 widgets and needs to be easily changed. To achieve this a new …
Read More