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  anitac 1 year, 6 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

    anitac
    Participant
    Post count: 7062

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


    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!

    #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

    anitac
    Participant
    Post count: 7062

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


    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!

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

You must be logged in to reply to this topic.