This morning someone asked if I had a demo of a certain website and I had to go to my Siteground account to search my staging areas. As I was looking, I ran across this demo site I had prepared for a photography client using the Maker Pro Child theme by JT Grauke of Design by Bloom and is sold on StudioPress.
When I was in development with the client he wanted to see what the theme would look like with the dark background. I created a color selector to switch back and forth. He ended up sticking with the white background.
Since I still have this staging area and the code is in action there, I decided to just drop the code into a blog post in case someone might be interested in adding it. Don’t forget to read all the way down. There’s some Bonus Code!!
I know the color selector inside the Customizer has become pretty popular, but there are some clients who are a “no fuss” kinda client who just wants to be able to select a few options and keep it moving. With the colors in the style sheet, you only need to change two colors. The default accent color can be changed inside the Customizer just fine.
Two files will need to be modified – the functions.php file and style.css. You can use an FTP application to modify your files or if you are pretty code savvy, you can edit inside the dashboard.
Adding the Function
Copy and paste the code to the bottom of the functions.php file. Then Save it.
Adding the Styling
Copy and paste the code to the bottom of your style.css file. Then Save it.
Select your new color
Now that you’ve added the selector. Browse over to Genesis > Theme Settings. You should now see the “Color Style” drop down. Section your color and visit the website.
That’s it. 🙂
You will notice with my demo we opted to use the free version of Soliloquy Responsive Slider the in Front Page 5 widget area. We decided to reposition and vertically align the default pager buttons, as well as remove the navigation arrows using CSS. In the Pro Version of Soliloquy, there is a setting to hide the arrows. To do this, just copy and paste the following code into your style sheet. One thing to keep in mind, you may need to change 50% on Line 25 to adjust the buttons depending on how many images you add to your slider.
Now that’s really it! 🙂