WordPress.org

Ready to get started?Download WordPress

Forums

Scrappy
Change Sidebar Width on Only One Page (2 posts)

  1. jkgray
    Member
    Posted 1 year ago #

    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.

  2. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.