April 15, 2013 at 1:31 pm #35598
First, why is there no "kitchen sink" theme that has literally every layout & configuration customization across all the child themes, so we have a central place from which to copy and paste? Okay, now that I've gotten that off my chest, here's another question I can't find an answer to here on the forum:
I'm working on a custom child theme that has a static blog page (under Settings > Reading). Said page evidently uses home.php as the template, even if you create a page_blog.php file and select that from the Page Template drop-down.
Since the child theme I'm using as a guide didn't have the Primary Sidebar on the homepage, I now have no idea how to add it in. I've selected the correct page layout (content sidebar) from that area.
The home.php file just says genesis(); in the template since I pulled out all the original widgets. If someone could point me to a child theme with a content-sidebar layout written in, or just explain how one goes about adding sidebar code to the template I'd appreciate it, right now the page is just full-width (but isn't designated as "full width").April 15, 2013 at 2:37 pm #35611
It would be nearly impossible for a kitchen sink to be made because child theme developers code differently than others. There are tons of Genesis child theme developers and no way that the platform could accommodate a feature like that.
Check your child theme functions.php file to see if the sidebars have been "deactivated" by the word "remove". Sometimes it will have that in there. If so, you can "add" it back, but there may not be any styling in there.
What child theme are you using? Where did you get it from?April 15, 2013 at 5:26 pm #35653
@Anitac - thank you for such a quick response, I appreciate it.
I'm working off the Streamline child theme.
When you say "add it back", the problem I find is that since the Primary Sidebar isn't specific to Streamline, rather it's part of Genesis itself. This is what I meant by a "kitchen sink" theme, but let's let that go for now.
There's no page.php file in Streamline, meaning it runs off of the parent Genesis theme correct? So there's nowhere for me to see where it's "removed" or "added" in the first place.
How would I go about "adding" the sidebar to my home.php template? I hope this makes sense.April 15, 2013 at 5:31 pm #35655
Try the Genesis Layout Extra's plugin http://wordpress.org/extend/plugins/genesis-layout-extras/
April 15, 2013 at 5:35 pm #35656April 15, 2013 at 5:35 pm #35657
This is a good plugin, no doubt, but why do I need a plugin to write HTML that is probably already around in some snippet? Has nobody any idea how to do something so simple? I wish I did, this is the first time I've had to customize a theme, normally I can use Genesis & its child themes right out of the box while only having to customize the CSS, so forgive me if I sound like I could go off at any minute...totally not the case, I respect the fact you're all volunteers and are trying to help me out. ~StephanApril 15, 2013 at 5:54 pm #35661
Okay, let's backtrack. You said you are using the Streamline child theme with a static home page and it doesn't have a primary sidebar. Did you change the layout on the blog page to have the primary sidebar?
I just checked Streamline and this is what's in the functions.php file:
/** Unregister layout settings */ genesis_unregister_layout( 'content-sidebar-sidebar' ); genesis_unregister_layout( 'sidebar-content-sidebar' ); genesis_unregister_layout( 'sidebar-sidebar-content' ); /** Unregister secondary sidebar */ unregister_sidebar( 'sidebar-alt' );
So the only sidebar that hasn't been unregistered is the primary which means it's active but not selected by way of the layout.April 15, 2013 at 5:55 pm #35662
Do your child them blog page look like this - http://demo.studiopress.com/streamline/layouts/fwc/ without a sidebar?April 15, 2013 at 5:56 pm #35663
exactly.April 15, 2013 at 5:58 pm #35665
You need to scroll down and select the Content-Sidebar LAYOUT on the blog page. It's not a template - it's a layout in the layout area.April 15, 2013 at 6:02 pm #35666
I did that already, and tried it with the "default layout" setting (which is also content-layout).
and I have the page template selected as the "Blog" template. Which I've come to find out actually uses the home.php file in the child theme (I used an echo "hello world" test).April 15, 2013 at 6:07 pm #35667
anitac - it really seems to be a function of using a static page as the blog page. I've tried a number of different options in the Edit Page screen (changing the layout, the page template from the drop-down, combinations of each). No matter what, the home.php file is used.
Something's amuck.April 15, 2013 at 6:18 pm #35670
If you can, rename the home.php file home-old.php and let me know what happens.April 15, 2013 at 6:24 pm #35672This reply has been marked as private.April 15, 2013 at 6:32 pm #35673This reply has been marked as private.
The topic ‘static blog page is missing sidebars’ is closed to new replies.