WordPress.org

Support

Support » Themes and Templates » Change Sidebar Width on Only One Page

Change Sidebar Width on Only One Page

  • Is it possible to change the sidebar’s width on only one page (my homepage)? I’m trying to add some facebook / twitter widgets that are too wide and cannot be resized to fit the sidebar’s current settings. For example, Facebook’s plugin has a minimum width of 292px. However I only want to make this change on the homepage.

Viewing 1 replies (of 1 total)
  • Theme Author Caroline Moore

    @sixhours

    Yes, you can target only your home page using the body class, home.

    So something like this will change the width of the sidebar on the home page only:

    .home #secondary {
       width: ###px;
    }

    Note you may need to adjust the widths of the other content areas/wrappers as well for everything to display properly.

Viewing 1 replies (of 1 total)
  • The topic ‘Change Sidebar Width on Only One Page’ is closed to new replies.