WordPress.org

Ready to get started?Download WordPress

Forums

Custom Theme, wanting widget compatible but with two sidebar columns (7 posts)

  1. Chuck Reynolds
    Member
    Posted 7 years ago #

    I'm developing a new theme and am wondering if I want to make it widget compatible, and my theme has two columns on the right, how can that be accomplished?

    Are there any themes out there currently that are widget compatible with a three column design?

    Thanks in advance for any help or pointers...

  2. Doodlebee
    Member
    Posted 7 years ago #

    What do you mean "how can that be accomplished"? The 3 column layout? or having 2 sidebars with widgets?

  3. Chuck Reynolds
    Member
    Posted 7 years ago #

    Sorry I should have been more descriptive...

    I'm wondering how, with 2 side columns, can I make those widget capable so in the admin you can use it just like the drag-n-drop functionality is now but with two columns instead of just the one.

  4. Doodlebee
    Member
    Posted 7 years ago #

    Well, I can't remember off the top of my head, but don't the sidebars come with div classes/ID's when they're output into the HTML? It's been a while since I've used them - but I thought if you used more than one, they have a set ID or class to them.

    I also thought there was a given tag that you used in the sidebar - yes...I remember. Normally, you use something like:

    if ( function_exists('dynamic_sidebar') && dynamic_sidebar() to enable the sidebar. With the second sidebar, I believe you change it to:

    if ( function_exists('dynamic_sidebar2') && dynamic_sidebar2()

    or something like that. They talk about this on the widgets site (automattic.com).

  5. moshu
    Member
    Posted 7 years ago #

    The search is working - if case you didn't realize it till now.
    Try: "widgets multiple sidebars"
    You may end up here:
    http://wordpress.org/support/topic/111551?replies=11#post-537055

  6. Chuck Reynolds
    Member
    Posted 7 years ago #

    super - thanks. my search didn't turn up that or anything useful.

  7. rweihs
    Member
    Posted 7 years ago #

    Check out http://www.urbangiraffe.com. The author, John Godley, has everything you need: instructions about how to modify your templates, how to set up a local server, and most important, an excellent theme that does what you want. He calls it "giraffe2. . . slightly wonky edition", but he's being modest. The wonkiness is very minor, if it's there at all. Here is a direct link to the relevant page: http://urbangiraffe.com/themes/.

Topic Closed

This topic has been closed to new replies.

About this Topic