Looking to make changes in the output of Genesis – Featured Page widget(s)? Get Custom Genesis – Featured Page Widget plugin from Github This is similar to Custom Genesis Featured Posts Widget plugin, but for the Genesis Featured Page widget(s) instead of Genesis Featured Posts widget(s). Sample usage: How to unlink featured image from Genesis […]
WordPress
How to display WordPress Popular Posts in columns
WordPress Popular Posts is one of the most popular plugins for displaying popular posts (based on the number of views) in WordPress. This tutorial provides the steps to display 3 most popular posts in columns with image, title and category appearing one below the other in each post in a custom “Home Featured” widget area […]
Querying multiple taxonomies in WordPress
Scenario: CPT: books Associated Taxonomy 1: universe Associated Taxonomy 2: series Requirement: For each universe show the books grouped by their series. Note: Unlike in the screenshot, the code below ensures that if there are no books in a series, the series name will not appear. Also, as can be seen, books were present only […]
How to load UIKit in WordPress
Looking to enqueue UIKit in your WordPress site? Add the following in your child theme’s functions.php: add_action( ‘wp_enqueue_scripts’, ‘custom_load_uikit’ ); /** * Load UIKit. */ function custom_load_uikit() { wp_enqueue_style( ‘uikit’, ‘//cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.30/css/uikit.min.css’ ); wp_enqueue_script( ‘uikit’, ‘//cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.30/js/uikit.min.js’, array( ‘jquery’ ), ‘3.0.0.30’, true ); wp_enqueue_script( ‘uikit-icons’, ‘//cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.30/js/uikit-icons.min.js’, array( ‘jquery’ ), ‘3.0.0.30’, true ); } Refer to https://getuikit.com/docs/installation for […]
How to remove Email and Website fields from Comment Form in WordPress
Looking to remove Email and Website/URL fields in your WordPress site’s comment form? Add the following in your child theme’s functions.php: add_filter( ‘comment_form_default_fields’, ‘comment_form_custom_fields’ ); /** * Remove Email and Website fields in comment form. * * @param array $args Default comment form arguments * @return array Modified comment form arguments */ function comment_form_custom_fields( $args […]
How to display posts grouped by year in WordPress
In a recent Genesis customization work I took up, the requirement was to display entries of a Custom Post Type grouped by years the posts were published in. The output needs to be the year the latest entry was published in, then an unordered list of titles linking to their permalinks for all entries published […]
How to load Bootstrap in WordPress
Adding the following in child theme’s functions.php will load Boostrap‘s minified CSS and JS files in the header and footer respectively in your WordPress site. add_action( ‘wp_enqueue_scripts’, ‘custom_load_bootstrap’ ); /** * Enqueue Bootstrap. */ function custom_load_bootstrap() { wp_enqueue_style( ‘bootstrap-css’, ‘//maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css’ ); wp_enqueue_script( ‘bootstrap-js’, ‘//maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js’, array( ‘jquery’ ), CHILD_THEME_VERSION, true ); } If CHILD_THEME_VERSION is not […]
How to add a slider in Minimum Pro’s front page
This tutorial provides the steps to replace Backstretch Image in Minimum Pro‘s homepage with a full-width Soliloquy (commercial version) slider. Live Demo Step 1 Install and activate Soliloquy. Create a slider to appear on the homepage and select/upload your desired images. In the Config tab, set Full Width and specify image dimensions as 1600 x […]
Title and Excerpt upon Hover on Featured image using Display Posts Shortcode and CSS Grid in Genesis
A member asked via email: In this tutorial https://sridharkatakam.com/portfolio-grid-showcase-pros-front-page-title-excerpt-hover/ , you place the portfolio in the Widget 4 section of the front page. I need to be able to place multiple portfolios in different places throughout my site. I believe I can figure out how to replace any of the widget areas on the Front […]
How to append Job Title or Designation to Author Name in Genesis Author Box
This tutorial provides the steps to add a Job Title custom field in user profile pages and when filled, display it to the right of post author’s name in author boxes in Genesis. Action hooks used: show_user_profile, edit_user_profile, personal_options_update, edit_user_profile_update Filter hook used: genesis_author_box_title Step 1 In this example, I’ve set the size of author […]
Recent Comments