Add Fallback Featured Image in Genesis
To set a fall back featured image in Genesis if one is not set, you can use a parameter in the filter genesis_get_image, in the code below I want to target a particular category and use a dashicon icon if the featured image is not set. This icon (or image) will then appear on the archive page. The genesis_get_image…
Read MoreHow to find out which WordPress template is being used in a Theme
How do you quickly find out which template for a page or post in your WordPress theme is being used without systematically going through each template? WordPress uses a structure of templates formed in a hierarchy of importance, when one isn’t there it falls back to the next in the chain. Click for a closer look…
Read MoreAdd a Slider to the Home Page in Genesis Theme WordPress using Cyclone Slider
Sliders have been slammed a lot recently, notably for their effectiveness and usability, however within certain contexts they are still relevant and more importantly still popular with clients, their use may be more relevant to certain industries, their usage may be better suited to subtle areas of the page. That said, here is a guide…
Read MoreUsing wp_localize_script with jQuery variables including strings, booleans and integers
The use of wp_localize_script is an API in WordPress is to retrieve PHP values from the database to use in javascript/jquery scripts, it can also be utilized to make string values language translatable if required, but also used to pass user defined variables/settings say from a plugin to load via a jQuery init file for a jQuery plugin. By…
Read MoreUsing Slidebars to Slide In and Out Content in A Genesis Theme
Having some content slide out from the side of a page is a great solution for off canvas content, it can solve crowded page issues especially at smaller sizes as it can slide in content that takes prominence, do what it needs to do for the user and then slide out again, Slidebars is a jQuery plugin solution that…
Read MoreMoving JetPacks Related Posts to a new position in Genesis
JetPack has a great Related Posts module, here’s how to move it further down the page below posts meta info or anywhere else you like by using a shortcode provided by JetPack. In Genesis Themes for instance, it positions itself in the genesis_entry_content hook at the bottom. Lets say you wanted this below the post…
Read MoreRemove Default Mobile Menu from Underscores
WordPress Underscores theme comes with a default primary menu that toggles to a mobile menu button at 600px wide. If your project requires using another mobile menu solution it is best to remove the existing one and here’s how. You can disable this menu and behaviour by removing the wp_enqueue_script to the navigation.js file…
Read MoreUp and running with Sidr Off Canvas Menu for WordPress
Sidr is a very popular jQuery off canvas menu that can slide content from the left or right into the viewport which is a great solution for mobile or tablet display. Here’s how to get it up and running in WordPress. First up is to download the latest zip which contains a minified jQuery file and…
Read MoreWordPress VVV Vagrant Running Slow on Virtual Box
Is your VVV Vagrant running slow on Virtual Box, lot’s of MySQL restarts, takes ages to SSH into the box – that might be because the initial memory settings was left at 512MB which is not pretty and as your working day goes on and you feel like your hitting a brick wall. This can be…
Read MoreRemove Default Sort in WooCommerce and ‘Showing All Results’ Notice
In an e-commerce environment using WooCommerce when there is only a few products to sell, it is cleaner and more intuitive to rid the space of some clutter – such as the ‘Default Sorting‘ options dropdown and the display notice ‘Showing all x results‘. Add this code in your themes functions.php file and you will have…
Read More