Metro Theme – Would like Home page with no Primary sidebar

Community Forums Forums Design Tips and Tricks Metro Theme – Would like Home page with no Primary sidebar

This topic is: resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  computerkitten 1 year, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33697

    computerkitten
    Participant
    Post count: 102

    Love the Metro theme so much I’m building another site on it.

    Would like to know though how to remove the primary sidebar for the Home page only (that is…the right sidebar).

    Please let me know.

    Thanks!

    CK

    #33713

    Susan
    Moderator
    Post count: 9597

    Check out this thread:


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #33774

    computerkitten
    Participant
    Post count: 102

    Okay I read over that link to the post, it was a little confusing but I went ahead and made some changes… it didn’t work!  What I did was I replaced that section in the Simple Sidebars plugin.php file this info below AND I removed the sidebar in the Home.php with “remove_action(‘genesis_sidebar’, ‘ss_do_sidebar’);“.  Nothing changed.  Do I need to do something else to make that Primary Sidebar go away on the Home page (only) of the Metro theme?

    Thanks,

    CK

     

    ”  I made changes to genesis-simple-sidebars/plugin.php.  I replaced these lines:

    function ss_sidebars_init() {
         remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );
         remove_action( ‘genesis_sidebar_alt’, ‘genesis_do_sidebar_alt’ );
         add_action( ‘genesis_sidebar’, ‘ss_do_sidebar’ );
         add_action( ‘genesis_sidebar_alt’, ‘ss_do_sidebar_alt’ );

    }

    with this (based off of your original suggestion):

    function ss_sidebars_init() {
         if (!is_home()) {

              remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );
              remove_action( ‘genesis_sidebar_alt’, ‘genesis_do_sidebar_alt’ );
              add_action( ‘genesis_sidebar’, ‘ss_do_sidebar’ );
              add_action( ‘genesis_sidebar_alt’, ‘ss_do_sidebar_alt’ );

              }

    }”

    #33891

    computerkitten
    Participant
    Post count: 102

    I got it figured out!  I see now that the home page is totally separated away from the other pages for its sidebar.  Thank you very much!

    CK

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Metro Theme – Would like Home page with no Primary sidebar’ is closed to new replies.