static blog page is missing sidebars

Community Forums Forums Design Tips and Tricks static blog page is missing sidebars

This topic is: not resolved

This topic contains 15 replies, has 3 voices, and was last updated by  anitac 1 year ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #35598

    stephanhov
    Participant
    Post count: 9

    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”).

    #35611

    anitac
    Participant
    Post count: 6377

    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?


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #35653

    stephanhov
    Participant
    Post count: 9

    @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.

    #35655

    braddalton
    Participant
    Post count: 7441

    Try the Genesis Layout Extra’s plugin http://wordpress.org/extend/plugins/genesis-layout-extras/


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #35656

    anitac
    Participant
    Post count: 6377

    Good suggestion @braddalton! I have to try that myself. I haven’t tried it yet.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #35657

    stephanhov
    Participant
    Post count: 9

    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. ~Stephan

    #35661

    anitac
    Participant
    Post count: 6377

    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.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #35662

    anitac
    Participant
    Post count: 6377

    Do your child them blog page look like this – http://demo.studiopress.com/streamline/layouts/fwc/ without a sidebar?


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #35663

    stephanhov
    Participant
    Post count: 9

    exactly.

    #35665

    anitac
    Participant
    Post count: 6377

    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.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #35666

    stephanhov
    Participant
    Post count: 9

    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).

    #35667

    stephanhov
    Participant
    Post count: 9

    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.

     

    #35670

    anitac
    Participant
    Post count: 6377

    If you can, rename the home.php file home-old.php and let me know what happens.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #35672

    stephanhov
    Participant
    Post count: 9
    This reply has been marked as private.
    #35673

    anitac
    Participant
    Post count: 6377
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 16 total)

The topic ‘static blog page is missing sidebars’ is closed to new replies.