1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Widgetizing two sidebars

Discussion in 'WordPress' started by pipes, Apr 21, 2008.

  1. #1
    Im creating my first ever wordpress theme, following a tutorial, the tutorial is for one sidebar only but ive decided to go for 2 (side by side) sidebars.

    Anyway ive added both sidebars and wigitized one, should i wigetize both? im guessing that would make sense? i guess il be using the other sidebar for ads and whatever else, havn't decided yet, but widetizing both sidebars would make sense, am i correct?
     
    pipes, Apr 21, 2008 IP
  2. System0

    System0 Well-Known Member

    Messages:
    168
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #2
    personally I dont add widgets to themes I use - its just as easy to add the code you want directly to your sidebar.
    common boxes like latest posts etc are unlikely to be changed so you could always have that in the static sidebar and have the other sidebar widget ready
     
    System0, Apr 21, 2008 IP
    pipes likes this.
  3. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #3
    Hi System0, i can see the reason for doing it that way too, it makes sense, if i do want to widgetize both sidebars though, is that seen as quite a common thing to do?
     
    pipes, Apr 21, 2008 IP
  4. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #4
    I would widgetize both. Anyone that wants to code them staticly can easily remove the extra code, but it would be hard for a novice to make it widget-ready.

    In other words, it's easier for a user to remove the widgets than it is to add them.
     
    MTbiker, Apr 21, 2008 IP
    pipes likes this.
  5. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #5
    Thanks MTbiker, il go for widgitizing both then, thanks to you too System0.
     
    pipes, Apr 21, 2008 IP
  6. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #6
    making both sidebars widget ready would be a smart thing to do. in case if you want to swich back and forth your sidebar options in the future, you have the widget ready to go for that. if you want to use one sidebar for ads, simply don't add any widgets on that sidebar. but having the sidebar widget ready, you have the option to use one ad, then one widget and then another ad.
     
    sultanofseo, Apr 21, 2008 IP
    pipes likes this.
  7. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #7
    I agree with that statement. Widgetize both sidebars. Let the end-users alter if they don't want the functionality.
     
    mizaks, Apr 22, 2008 IP
    pipes likes this.
  8. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #8
    Thanks sultanofseo and mizaks, i think its a good idea, it makes sense to do it that way and have the option in place.
     
    pipes, Apr 22, 2008 IP
  9. jeeberman

    jeeberman Guest

    Messages:
    141
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    jeeberman, Apr 22, 2008 IP
  10. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #10
    Thanks jeeberman, il go for that.
     
    pipes, Apr 23, 2008 IP
  11. fish

    fish Well-Known Member

    Messages:
    450
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #11
    Check out this tutorial: Widget-Ready WordPress Theme Tutorial

    And scroll down to the "Making Multiple Widget Areas" part...it's actually very easy to do, especially if you already know how to add one. Let me know if you have any questions.
     
    fish, Apr 23, 2008 IP
    pipes likes this.
  12. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #12
    Thanks very much fish, ive bookmarked it and will have a good look through it, thanks.
     
    pipes, Apr 23, 2008 IP