In this article I show how a random Google Adsense ad (or just any HTML) can be inserted in between every two Posts on Posts page (Blog) and category archives when using Genesis. Step 1 Install and activate Ads by datafeedr.com plugin. This plugin allows us to add advertisements (any HTML code) and provides shortcode […]
WordPress
Displaying Posts organized by Categories in WordPress
Below is the code that loops through each non-empty category in WordPress that has at least 1 published post and displays an unordered list of 3 latest posts’ titles linking to their permalinks with a link to the category archive page below the list. To view the full content, please sign up for the membership. […]
How to display Posts organized by category as Data Tables in Genesis
Recently I finished custom work for a gentleman that involved creating a Page Template in Genesis that shows Posts in tabular format grouped by their categories with sorting and search options available in the front-end. Full page screenshot. Requirements: Displays Posts from each category organized by category with the categories in ascending order. Within each […]
DesktopServer Tip: Ensure that name of Export and active theme’s name do not match
Yesterday I wanted to export a localhost install of WordPress, http://centric-pro.dev from my old computer (MacBook Air) to the new one (MacBook Pro). I have the current latest version of DestopServer Premium, 3.6.3 running on both the laptops. I entered “centric-pro” in the ‘Export As’ field and let DestopServer generate the zip file. I then […]
Scroll Animations in WordPress using Smoove
In the past I wrote several tutorials on scroll animations Genesis/WordPress: Scroll animations in WordPress using WOW.js Adding scroll animations in Parallax Pro Using ScrollReveal.js to fade in posts in Genesis Scroll animations in WordPress using Animate.css, Jack In The Box and Waypoints Using Waypoints jQuery to animate and fade in elements as they are […]
How to add ‘inner’ body class to all inner pages in WordPress
WordPress automatically adds ‘home’ class to ‘body’ element for the site’s homepage/front page. Wouldn’t it be handier to have a ‘inner’ body class for all the other pages? This can be done by adding the following in child theme’s functions.php:
Displaying Advanced Custom Fields’ Gallery Field as a Slider using Soliloquy
This is an extension of my Single CPT template in Genesis to display ACF custom fields including a Gallery field as a Slider tutorial. Here I discuss using Soliloquy instead of Flex slider for displaying images of ACF Pro’s gallery field in a slider. Thanks to Jo Waltham and David Egan for the code. Requirement: […]
How to use Strip, a less intrusive responsive Lightbox in WordPress
Strip is a jQuery script by Nick Stakenburg for elegantly sliding images and videos (YouTube and Vimeo hosted) from your screen edge rather than the traditional lightbox that appears no top of the content. In this article I show how Strip can be implemented in WordPress and share custom jQuery code for making Strip work […]
How to set the number of Posts per page in a category and all children of that category
Here’s the code snippet to set the number of Posts in the archive page of a specific category and all its sub (child) categories: To view the full content, please sign up for the membership. Already a member? Log in below or here.
How to overlay a widget area on a full width Soliloquy slider in Genesis
To view the full content, please sign up for the membership. Already a member? Log in below or here.
Recent Comments