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:
Code Snippets
How to remove Post info conditionally in Genesis
To view the full content, please sign up for the membership. Already a member? Log in below or here. Username Password Remember Me Forgot Password
How to move Featured image to the left of Post title in Genesis
To view the full content, please sign up for the membership. Already a member? Log in below or here.
How to center Navigation Menus in Genesis
To view the full content, please sign up for the membership. Already a member? Log in below or here.
Simple image hover effect that shows a background image
To view the full content, please sign up for the membership. Already a member? Log in below or here.
How to replace Site Title text with custom HTML in Genesis
Scenario: In the Header section of Genesis Theme Settings, Dynamic text is set to be shown for site title. This will pull the Site Title text entered in Settings > General and display it in .site-header. There could be times when you want to use different text instead of the site title or use HTML […]
How to remove Post Meta from Entry Footer in Genesis
To view the full content, please sign up for the membership. Already a member? Log in below or here.
How to display Featured image in single Posts in Genesis
Below is the code to be added in child theme’s functions.php to display featured image attached to Posts (if present) in single Post pages when using Genesis. To view the full content, please sign up for the membership. Already a member? Log in below or here.
Downloadable and Searchable Genesis Code Snippets
Update: The snippets are now here: https://genesis.community/wiki/. It has been a little over 8 months since I stepped into the wonderful world of Genesis. The websites that I create now are leaner and visually better. During this period I have stored and constantly refer to a lot of code snippets, primarily from StudioPress website into […]
Changing WordPress widget title heading tag using jQuery
On a site that I worked on today it was required to change the widget title HTML output from <h4 class="widget-title widgettitle">Meta</h4> to <h2 class="widget-title widgettitle"><span>Meta</span></h2> for a specific widget for styling it uniquely. i.e., before: after: While it is possible to customize title markup for all widgets in Genesis using genesis_register_sidebar_defaults filter, I do […]
Recent Comments