While it is possible to add several useful widget classes using a plugin like Widget CSS Classes in this post I share the code found in wordpress.org forum post to automatically add widget-first, widget-last and numbered classes (widget-1, widget-2 etc.) to widgets in all widget areas. Before: After: Add the following in child theme’s functions.php: […]
Free Content
How to move Secondary Navigation below Slider in Outreach Pro
In GenesisWP Facebook group a user wants to know: Does anyone know how to move the secondary menu to below the slider on Outreach Pro? We can assign a menu to secondary navigation location, remove it only from the front page and display it between Home – Top and Home – Bottom widget areas in […]
Pantheon – Local to Live and Live to Local Workflow with On-Demand Sync
This is a notes-to-self kind of article. Tools of the trade: DesktopServer Pantheon WP Migrate DB Pro SourceTree Live to Local (or when starting from a blank site) In Pantheon dashboard go inside the live site and switch to Git connection mode. Copy the Git Connection Info. Paste it in a notepad and remove git clone […]
How to Load Posts on Demand using AJAX in Genesis
Update on March 08, 2018: An updated tutorial covering the case of user scroll as the trigger to fade in the subsequent set of posts is here. This article is based on Bill Erickson’s excellent tutorial titled Infinite Scroll in WordPress. We shall add a Load More button below posts on Posts page and Archives […]
Tutorials Organized by Child Themes
I have created a page to display tutorials grouped by Genesis child themes here: sridharkatakam.com/by/child-theme. A link to the same has been added under “Archive” menu item in the navigation. Here’s the code in the Page template: Salvattore is being used for the responsive masonry grid and Favorties plugin about which I wrote in the […]
How to overlay entry title on featured image in single Posts
In Genesis Facebook group a user asked: Hello friends, I was able to move my entry-header outside the loop and make it full width, thanks to Sridhar Katakam! However, I’d like to take my featured image outside the loop (preferably above the entry-header). Here’s what it currently looks like: http://leaguewp.com/web-hosting-service-guide/ Here’s how I’d rather it […]
[Video] How to see code changes between original and modified version of a theme using SourceTree
Scenario: You have customized a child theme and now want to know what files have changed and the specific code changes in those files compared with the original unmodified version of that theme. In the screencast below I show how this can be done using the free Git client, SourceTree which is available for both […]
How to automatically change slugs to match titles for Soliloquy sliders
For all post types in WordPress slugs are automatically generated based on their titles when entries are published. WordPress slug is the value of post_name field in wp_posts table. If you want to edit an entry’s slug to match its title when the title is changed, it can be done by editing the last string […]
How to set up site title on homepage and logo on inner pages in Altitude Pro
In Genesis Facebook group a user asked, Is it possible to display the Site Title on the homepage and the Site Logo on all other pages? I’m using Altitude Pro. Thanks for any help. In this tutorial I share the code for displaying header image (logo) uploaded in customizer as an inline image rather than […]
How to wrap entry titles inside a custom div in Genesis
In Genesis Slack‘s #beginners channel, a user wants to know how h1/h2 entry titles can be kept inside a div. Opening and closing div tags can be added around the entry titles using functions hooked to genesis_entry_header like so: Before: After:
Recent Comments