Adding Widget changes Home to Full Width

Community Forums Forums General Discussion Adding Widget changes Home to Full Width

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Robin 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #105317


    I am running the Corporate child theme.
    I am using the content-sidebar layout on the home page.
    When I add a widget to the Featured area, the home page body class changes to full-width.
    I would like to keep content-sidebar, how do I fix it?


    Post count: 327

    Look in your theme’s home.php file. The function corporate_home_genesis_meta has a line to force the home page to full width if any of the home page widget areas have a widget in them. You can remove or comment out the relevant line (14) and see if that does what you need, but you may need to adjust some CSS as well.

    Line 14:
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    Corporate is not a theme I’ve worked with before, so I don’t know what changing to a content-sidebar layout will do to the widgetized home page. HTH

    I do the best I can with what I’ve got. (say hey on twitter)

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

You must be logged in to reply to this topic.