Update on August 23, 2017: Here is the newer version.
Originally published on March 28, 2015
Updated on May 22, 2016
For most of the custom PSD to WordPress work that I do, I use a modified version of Genesis Sample – a starter Genesis child theme if you will.
In this post I would like to share my modified Genesis Sample starter child theme based on Genesis Sample 2.2.3.
Download link is at the bottom.
Below are a few changes/additions to Genesis Sample:
Inline Mobile Responsive Hamburger menu
- Renamed “After Header Menu” back to “Primary Navigation”
- Removed Header Right widget area
- Repositioned Primary Navigation menu from below the header to inside header to the right
- CSS changes so the hamburger menu continues to remain at the right and not drop below the site title/logo until at least 440px
Inline Logo
The default WP/Genesis method for setting up logo is as a background image. I prefer using the regular img
element in the HTML output instead.
To use image logo in place of the site title text,
- in functions.php, look for the block of code with comment text of “Add support for custom header” and change the width and height to twice that of your desired logo display size. The default is 600 x 160 meaning, we are going to show the logo at 300 x 80.
- while there, uncomment
add_filter( 'genesis_attr_site-description', 'abte_add_site_description_class' );
- go to Appearance > Header and upload your 2x sized logo image
- in style.css set the 1x width of logo for
.site-title img
Bye bye Blog Page Template
Don’t use the Genesis Blog Page Template.
When Bill says something you just do it, no questions asked.
Also added code in functions.php to remove the Blog Page Template meta box from Genesis theme settings.
Archive Page Template – Shouldn’t it be called Sitemap?
Yep.
Search form input placeholder text – Go away on focus
Regular:
When clicked inside:
CSS Adjustments
- Removed fixed pixels width for .title-area
- Replaced pixels width for footer widget areas with %s
- Added CSS for improving the appearance of standard Gravity Forms forms. Before -> After
Download my Genesis Starter theme
References:
http://www.studiopress.com/genesis-sample/
https://sridharkatakam.com/inline-logo-in-genesis/
https://sridharkatakam.com/how-to-remove-site-description-tagline-in-genesis/
https://sridharkatakam.com/add-inline-mobile-responsive-menu-genesis-sample/
Great stuff Sridhar,
I think these are more sensible and ‘flexible’ defaults than the default Genesis sample theme.
A couple of questions:
1, Did you consider going mobile first?
2, What about accessibility? Did you think about or are you considering making it more accessible, like Carrie Dil’s Utility Pro theme?
Thank you for sharing this! 🙂
Rich
1. Personally I don’t find significant benefits of doing so to warrant switching.
2. I am yet to dive into accessibility. When I do, I shall update the theme taking that into account.
Excellent, thanks again.
nice work Sri. Rreally like this. I just starting working on a starter theme for all my projects. I may move to your and add some sass and a few other components. Really clean. Love it.!
Thanks Sridhar, this looks really good!
Nice job Sri. I’ve just started working on my own Genesis starter child theme that combines the power of Genesis with Bootstrap. These are some great ideas to implement too. Keep up the great work.
Thanks for the starter theme Sridhar 🙂
Thanks Sri, this is awesome. I was starting to play around with another version of the Sample theme, but it’s now a bit outdated and I love the changes you’ve made!
Fantastic starter theme with some brilliant changes. Much appreciated!
[…] sections constrained by max-width applied to the wrap. I have modified my Genesis Sample-based variant to make it […]
Great work Sridhar. This is a time saver. Thanks for sharing!
Wow… this is definitely much much better then the Genesis Sample Theme. Keep going and growing…
Cheers!
Joseph
Wow, amazing. I love it!
Thanks for this. I think that the responsive menu should be standard in a basic theme, I guess they forgot about it. Will use it for my next project.
Any reason we couldn’t use something like Kirki in the child theme for customiser?
None. It should work fine. I haven’t tried it though.
I’ll bung it up on my repo and add it as somewhere to start. I have always been interested to see where we can take a Genesis child theme when it comes to options through the customizer, and especially through Kirki.
BTW, did you see your challenge on the Dynamik thread?
https://www.facebook.com/groups/genesis.dynamik/permalink/477043985777192/
(3/4 down the thread regarding mmenu & headroom)
For anyone that comes along this path, here’s my reply: http://sridharkatakam.com/app-like-off-canvas-menu-using-mmenu-hide-header-until-its-needed-using-headroom-in-genesis/
This is perfect Sridhar, thanks for providing this!
Great template, thankyou it’s just what i needed.
Is there anyway that you can make the footer 100% instead of 32%, this is the code that i have found and if i adjust it in firefox, it works, but i cannot locate it anywhere
.gwfoot-footer-one-one-third {
width: 32%;
}
Pls disregard ive found the problem.
Found a problem. Under Genesis/Theme Settings.
Header
Use for site title/logo:
Dynamic text = Shows the logo.png image. Should show text?
Image logo = Shows nothing?
Thanks for all your work Sridhar!
The way I’ve set this theme up (primarily, for my usage) is little different. Those settings will not work.
If you would like to display text site title and tagline, uncomment lines 46 and 67 in functions.php. i.e., these: http://pastebin.com/raw.php?i=RhbBagyE
Hi, ive used your template, and its great, so nice and simple just want i needed.
Just wondering when i put text into the header it aligns right on mobile and ipad.
What do i need to adjust to get it to do the same as the search bar.
http://culoulsawmills.com.au
Thanks
Add http://pastebin.com/raw.php?i=27VhWFRE in 960px media query.
You might also want to check the correctness of HTML placed in Header Right widget area. It appears as if opening and closing tag(s) is/are not matching.
Thanks that worked
[…] This method can also be seen in use in my Genesis Starter Child Theme. […]
Sridhar,
Thanks so much for providing this starter theme. I used it on a new site this past week.
Question: I’d love to have a ‘landing page’ template with this theme. Can you point me in the right direction? Should I just find an existing child theme with one and copy that?
Thanks again!
Craig
Yes. You can just copy
page_landing.php
from Enterprise Pro into this theme’s directory and use it.Thank you for the changes, they are great! In the Genesis > Theme Settings there is a ‘blog page template’ section that allows you to select to show only posts from a specific category. However, with the changes there is no blog page template now so how do I still show only recents posts from one category on the home page?
thanks
Follow https://sridharkatakam.com/how-to-limit-posts-on-posts-page-to-a-specific-category-in-wordpress/.
Thank you! 🙂
[…] a comment on Genesis Starter Child Theme, a user […]
Thanks for the great theme, Shidhar! Looking forward to using your theme.
Your work is excellent and you’re one of the top WP experts. How much would it cost for you to work on a complete site redesign?
Hi Chris,
Starts at USD 2200.
https://sridharkatakam.com/contact/
Are there any turtorials that show how register a new widget area for this theme, i would like to make a full width windget area above the footer section.
Thanks
If you search this site for “register widget”, you’ll find a lot of tutorials. Find the one closest to your needs and tweak it.
Thanks so much for sharing your version of the starter theme! I do have one question I hope you are available to answer. How do I switch to a different version of my logo when viewing on a tablet and/or mobile device, if that makes sense?
Awesome starter theme thank you. I wish to make the header full width, pushing the logo to left side of screen and nav to right side. Can you point me in the right direction with this?
I’m new to Genesis and previously used HTML5 Blank as a starter theme for WordPress. I barely made modification to the theme files. Now that I’m trying to learn and absorb Genesis, I’m looking for the most basic child-themes and that brought me to you!
My question is… I am a Mobile-First developer. You theme is not Mobile-First. In the world of Genesis… what does this mean? Is it just a matter of the stylesheet having min-width up top and growing as you go down the page… or is there something in the functions.php file that is different?
I think it’s just that.
There are other starter child themes that are mobile first for Genesis.
Here’s one: http://briangardner.com/mobile-first-genesis-theme/
Thanks for the quick reply. I saw that mobile first theme, but I ran it through themecheck.org and it only got a 59%. That makes me nervous. The errors were:
Critical alerts
Unwanted files : hidden file(s) or folder(s)
.ds_store .git was found.
Deprecated functions : get_bloginfo
get_bloginfo( ‘stylesheet_directory’ ) was found in the file functions.php. Use get_stylesheet_directory_uri() instead.
Line 14: wp_enqueue_script( ‘mobile-first-responsive-menu’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/responsive-menu.js’, array( ‘
Line 15: wp_enqueue_script( ‘mobile-first-sticky-message’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/sticky-message.js’, array( ‘j
Warnings
Unwanted directories : GIT revision control directory
GIT revision control directory
.git was found.
Are these cause for concern?
It is v. easy to fix these.
Just turn on the visibility of hidden files, delete .git folder and other .files preceeded with dot.
Then replace both the instances of
get_bloginfo( 'stylesheet_directory' )
withget_stylesheet_directory_uri()
.Here’s the result with the above changes in place: http://themecheck.org/score/wordpress_theme_bg_mobile_first.html
and here’s the download link: http://d.pr/f/1i0b3
Wow! Thanks! I started using your starter theme for my first project with Genesis. I just commented out all the media queries for now and am building it mobile first. I think I’m going to continue doing that and add min-width as I go along. I will also A/B your starter theme and his, note the differences and try to understand why they exist. I’m looking forward to learning this framework and you’ve been a big help.
Thanks again.
[…] http://www.gregreindel.com/genesis-html5-child-starter-theme/ https://sridharkatakam.com/genesis-starter-child-theme/ […]
Could i combine this simpe genesis with my themes before.
i use sparkle theme.
anda is it safe
please reply.
thanks
Thanks so much for the great theme! I feel silly asking, but for the life of me I can’t figure out how to upload my custom logo image. Can you please direct me?
Thanks!
Caroline
I have updated the child theme and the steps in the tutorial to include instructions for setting up image logo.
Thanks so much! Going to work with this asap!
[…] Get the details here […]
Thanks for another great contribution following up your posting of what changed in the new sample theme. I like the way you have handled the menu. I definitely will give it a try.
Hi Sridhar,
Thanks for this update. I tried the sticky header tutorial from Studiopress (http://my.studiopress.com/tutorials/sticky-menu/) but the menu areas seem to have changed in the new sample theme. What needs to be adapted to make this work now? Thanks.
To make the site header fixed, you can add the following CSS: http://pastebin.com/raw/eB8uSkKp
For some reason when I upload this to my deploy installation, the title is 100% and the right menu is pushed down
The title-area is using .header-full-width .title-area
I’m not sure how I even did that!
Can you provide the URL of your site?
I have this same issue, activated the theme and the logo area is aligned with the top of the header row and the navigation is aligned to the bottom. http://territoryre.wpengine.com/
asks for username and password to view the site.
Sorry user: demo
Pw: ctfr1410
Thanks.
In style.css comment out or delete http://pastebin.com/raw/8EV6r5z0.
I shall update the theme accordingly.
Hi Sridhar!
Just wanted to say thank you for sharing your starter theme!!
Besides developing websites, are you doing SEO too?
Thanks
Hi Killan,
No, I do not take up SEO.
Hi Sridhar,
I started to customize the starter theme and everything works fine. But after I added the css classes ‘.right’ to the last 2 menu items and ‘.last’ to the last menu item – I get the following: the two menu items are on the right side but in the wrong order. So the wrong menu item has ‘padding-right:0px;’.
Does anybody know what I did wrong here?
you can see it on musikerdienst.com
Thank you!
There’s no CSS for
last
selector in Genesis. So it will not work as you expect.As you have observed the order of the right floated menu items will be reverse of how they are present in the custom menu. So you can simply edit your menu and swap their order.
Thank you!
for me the problem is that when I change the order of the menu items, the order of the mobile menu will change, too. So the order of the mobile menu will always be different to the menu of bigger screens.
Hi Sridhar, when uploading my custom logo, WordPress forces me to crop the image, then saves a re-named cropped version. Is there a way to get around this? Thanks
Do you want to upload and use a logo that’s suitable for retina displays? i.e. 2x size.
What are the dimensions of your desired logo image?
Yes, retina display. My dimensions are set to 240px by 96px and my logo file is double this size. When I upload it I only get the option to save AND crop. Thanks….
I noticed the latest Genesis Sample Starter Theme is version 2.2.4. Is there any reason that I should wait for an update on your theme which is based on 2.2.3?
[…] Sridhar Katakam […]
[…] In this tutorial I share the steps for smoothly reducing the height of header on scrolling down and making it fixed for screen widths above 800px (changeable) in my Genesis Starter theme. […]
Will this starter theme still allow you to have a menu under the header? Same as the regular starter theme?
(and like your own site!)
Do you want the below header menu in addition to the one in the header?
I think what I mean is I’d like the choice?
As it stands, I can have the menu under the title area (like your own site for example) or I can have the menu on the right in the header area (like the your sample theme).
With yours, it seems that you can only use the menu in the title header area?
Of course I could be mistaken? Can you have a menu in either position?
Below header nav (instead of being floated to the right of header) can be set up by making these changes:
1) In functions.php
a) delete
[php]// Reposition the primary navigation menu
remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ );
add_action( ‘genesis_header’, ‘genesis_do_nav’ );[/php]
b) change
[php]add_theme_support( ‘genesis-structural-wraps’, array(
‘header’,
// ‘nav’,
‘subnav’,
‘footer-widgets’,
‘footer’
) );[/php]
to
[php]add_theme_support( ‘genesis-structural-wraps’, array(
‘header’,
‘nav’,
‘subnav’,
‘footer-widgets’,
‘footer’
) );[/php]
c) optional: to use Header Right widget area delete
[php]// Remove Header Right widget area
unregister_sidebar( ‘header-right’ );[/php]
2) Make changes in style.css per https://www.diffchecker.com/d8fmVM4b. Left side is the code in Genesis Starter and right side is the modified code.
[…] Katkam’s Genesis Starter Child Theme which was released in 2016, has added some cool new features. In fact, these days, I use his […]
[…] #1: Replicate the Responsive Menu Design featured in Sridhar Katakam’s Genesis Starter Child Theme. If you know how to code, you can replicate that menu […]
Hi,
The name of the Genesis sample can we customize?
Thank you
Hi Sridhar,
I use your Genesis Starter Child Theme as the basis for many of my designs. If you ever need to change any of the code in there, how would we find out?
Thanks!
How can download please
[…] wonders the best one to develop their custom Genesis child theme. In this post, I’ll dissect the Genesis Starter Child Theme by Sridhar Katakam, which is a modified version of Genesis Sample Theme by […]
Hi Sridhar – Just letting you know there is a 530 error on the download link – http://dev-genesis-sample-starter.pantheonsite.io/
Cheers, Rob
I will soon be releasing an updated version. I’ll fix the demo and download links then.
Hi Sridhar, great to hear that a new version is coming. When can we expect to see it?
Thanks, David
Done.
https://github.com/srikat/genesis-starter
Excellent, thanks Sridhar.
[…] is the successor to my earlier Sample Starter […]
[…] Katkam’s Genesis Starter Child Theme which was released in 2016, has added some cool new features. In fact, these days, I use his […]
[…] #1: Replicate the Responsive Menu Design featured in Sridhar Katakam’s Genesis Starter Child Theme. If you know how to code, you can replicate that menu […]
Great work Sridhar. This is a time saver. Thanks for sharing!
This theme is very impressive! I have however been having issues with the genesis column classes with the addition of the CSS grid in the theme… as well as any existing clearfix, as grid cancels our floats and clears. Is there a way to update these so to continue to work?
Same. Downloaded the latest version from your GitHub repo but column classes aren’t work.
Can you give me the URL of a sample page where it’s not working as you expected? or, can you share your HTML and CSS?
Have you seen https://github.com/srikat/genesis-starter/wiki/Column-Classes?
btw, James and isvictorious – I hope both of you are talking about and meant to type your comments at https://sridharkatakam.com/genesis-starter-2-3-0/ and not here.
Moving reply to that page 🙂
[…] Genesis Starter Child Theme de Sridhar Katakam […]
Thanks for the child theme bro.
Really appreciate that..!!
Great theme, i have use on one of the my website and this theme really good because they increases the loading page speed of my website.
Thanks for this.!
[…] Sridhar Katakam […]
The link to the demo is no longer working – could you update that? 🙂 🙂