The Prose child theme has been around for over 2 years and its a little bit different than the other StudioPress child themes.
Prose doesn’t include a home.php file and uses a custom code page for adding PHP and CSS rather than child themes functions.php and style.css files.
Prose also doesn’t offer home page featured widgets like home top which can be used with the Genesis responsive slider.
In this tutorial we’ll be adding a new widget area which display content on the home page only.
At the end of this post, you’ll also find a link to another tutorial which uses a different method to display a slider on the home page and a different slider plugin.
Create Home Page Widget Area
Add this PHP code to the end of your init.php file:
Code not displaying? Grab it from Github.
This code registers a new widget area and creates the function to display the widget area’s content on the home page only using a conditional tag.
It also displays the widgets content in the location using the genesis hook before_content_sidebar_wrap.
Style Your Sliders Widget Area
Once you install the Genesis Responsive Slider and configure the settings, you can also style the widget area using CSS code:
Here’s some code code you can modify:
.home slider {
background: #f2f2f2;
padding: 5px;
border: 5px solid #D4D0C8;
}
Other Options
Here’s another way to add a slider on your homepage using any theme in any location.
Don’t forget to backup your files just in case you forget and update your child theme at some stage.
Genesis Prose Extras Plugin
This is a new plugin which makes adding widgets, customizing layouts and other changes easy for Prose theme users. Discover how easy it is to add home page widgets and change the layouts after installing this plugin.
Was This Tutorial Helpful?