Add Scroll Back to Top of page Functionality in WordPress
How to add a scroll back to top of page in WordPress? – I am sure there are a dime a dozen tutorials and plugins on this subject – here is the solution I went with. jQuery scrollToTop was my choice of poison, download and install the scrollToTop.min.js file in your theme’s js folder and create an init…
Read MoreUsing ACF Gallery Field with jQuery Backstretch Plugin
To have an enduser add or edit images used as multiple backgrounds for use in a backstretch script you can use the ACF Gallery field for the user to add the images and then use a foreach loop to add the images to the backstretch init script. Set up the gallery field and link it to…
Read MoreSetting up Composer and PHPCodesniffer on Atom Editor on macOS
Here is a guide on how to get PHPCodesniffer going on Atom text editor using the WordPress code standards, this will be done via adding PHPCodesniffer via Composer, you can also add PHPCodesniffer via Pear or Homebrew, I used to have it running via Pear but have found it to be not as reliable. Install Composer Open…
Read MoreRemove Meta Boxes in Genesis Theme Settings
You can remove the metaboxes that appear in the Genesis theme settings in the WordPress dasgboard – this may help when you want an end user not to use or change certain theme settings. In this Gist are the main ones just include the ones that you need to remove – any settings that have…
Read MoreAdding a centered horizontal submenu in Genesis Theme
In some instances you may need a horizontal submenu as appose to a vertical one, in WordPress with a few CSS tweaks, here is how you can achieve it, this guide uses the latest Genesis Sample theme CSS. So going from this… to this… There are only 5 CSS selectors to edit, you…
Read MoreTab to Accordion Responsive Layouts in WordPress
There is a nice responsive Tabs plugin which is jQuery based called aptly called Responsive-Tabs, it handles changing the layout from a tabbed content structure to an accordion layout at a set media query size. The accordion layout is better suited for smaller mobile/tablet sizes. Going from tab to accordion… To a smaller viewport setting……
Read MoreChange the Genesis Theme Copyright Line in Footer for WordPress
Genesis Themes have a footer credit copyright line at the base of the page. This includes the copyright and Genesis framework link with a couple of standard WordPress default links. To change this, you can add a new function and filter into your functions.php of your Genesis child theme… Adding the Function //Changing the Credits function wpb_footer_creds_text () { echo…
Read MoreCheckerboard Featured Posts Layout like Genesis Atmosphere Pro Theme
Here is a quick tutorial on how to create a blog post layout that has a checkerboard style layout which uses a featured image on one side of the the post and the post headline and content on the other, the image alternates position on each post. This is similar to the Atmosphere Pro theme…
Read MoreAdd a Genesis Footer Widget Area to include extra content
In a lot of Genesis Child themes, the footer has the copyright and credit text but no widget area to add or edit content, most themes do have up to three footer widgets but your design may require these areas and then another area beneath those to add in additional elements and content. Here’s how you can remove…
Read MoreSet a conditional argument for multiple Custom Post Types in WordPress
You can set a conditional argument for multiple custom post types in WordPress using in_array The format is like so… if( in_array( get_post_type(), array( ‘treatment’, ‘package’ )) ) {//add in cpts here // do stuff } else { //what all the other post types get // do other stuff } } It searches the array of cpts…
Read More