Removing Home Middle Widget in Crystal Theme

Community Forums Forums Design Tips and Tricks Removing Home Middle Widget in Crystal Theme

This topic is: not resolved

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

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

    Carolyn
    Participant
    Post count: 35

    Hi, I’d like to remove the Home Middle Widget in the Crystal Theme. I’ve tried deleting the code where it is registered, but that didn’t work.

    Perhaps wrong code? I deleted

    genesis_register_sidebar(array(

    ‘name’=>’Home Middle’,

    ‘id’ => ‘home-middle’,

    ‘description’ => ‘This is the first column of the middle section of the homepage.’

    ));

     

    After putting it back I added this code -

    /** Remove Home Middle Widget */
    function remove_some_widgets(){

    // Unregsiter Home Middle Widget
    unregister_sidebar( ‘home-middle’ );
    }
    add_action( ‘widgets_init’, ‘remove_some_widgets’, 11 );

    That also didn’t work.

    Any suggestions?

    Thanks.

    #15362

    AC
    Blocked
    Post count: 7712

    Look in the Home.php file for that widget area and remove it from there.

    #15364

    Carolyn
    Participant
    Post count: 35

    THANK YOU! I have been toying around for over an hour in the functions file!
    As a newbie, why did I have to comment out in home.php for it to work and not in functions.php?

     

    #15370

    AC
    Blocked
    Post count: 7712

    Functions is just telling it what to do…. home is providing the place for that action to be located.

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

You must be logged in to reply to this topic.