ThemeShaper Forums » Thematic

[closed]

Custom sidebars

(7 posts)
  • Started 11 years ago by meevil
  • Latest reply from meevil
  • This topic is not resolved
  1. Hey guys, me again.

    Just wondering how possible is it to have custom sidebars, or having some way to put custom content within a sidebar depending on which category or Author page is currently being displayed?

    For example, on my homepage I want to have the sites Facebook like box in the sidebar, but in the author page I want the authors category box there instead.

    Thanks a lot guys for your continued support!

    Posted 11 years ago #
  2. fwunder
    Member

    Hi @meevil,

    You might want to consider using custom fields and/or body classes.

    I'm playing around with similar ideas in my sandbox. *disclaimer* -- This is a pretty radical and probably a bit naive approach to some Thematic mods and should not be considered "standard". It's just a sandbox, but might give you some ideas...

    http://grafiks101.com/dev/

    **double disclaimer** read the first disclaimer!

    Posted 11 years ago #
  3. you can create new widget areas and conditionally define what pages/sections they appear on. no need for body classes.

    or you can hard code the same conditional stuff into some functions that latch onto thematic_abovemainasides, thematic_belowmainasides, or thematic_betweenmainasides

    Posted 11 years ago #
  4. fwunder
    Member

    @helgatheviking, the widget idea is a good one and reminded me of something I've used successfully and easily in the past:

    Conditional Widgets

    http://wordpress.org/extend/plugins/conditional-widgets/

    Posted 11 years ago #
  5. How would I go about that Helga?

    New Widget areas sounds good. Would I be able to define these areas to show up only certain versions of the following pages?

    - Category

    - Author

    - Single Post (by a certain Author / In a certain Category)

    Posted 11 years ago #
  6. yes. please see this for how to set up a new widget area
    http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas#post-6660

    the important things you will need to change are the action_hook (which will decide the location of your widget area)... and then the function... which is where you can elaborate the conditional logic

    Posted 11 years ago #
  7. Thanks! Works a treat! :D

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.