ThemeShaper Forums » Thematic

[closed]

Sidebar Widgets Help...Hard Coding widgets

(3 posts)
  • Started 5 years ago by lqunta
  • Latest reply from Chris
  • This topic is not resolved
  1. lqunta
    Member

    Hi Guys,
    I have to confess that thematic is quite a great theme framework, and, the support forums are super too! [why didn't I start using thematic before?].

    Well, I'm trying to 'hard code' the sidebar of my child theme [still in development], to have some widgets present by default, instead of the usual widgets [search, categories, meta] that appear by default. I would like to have:
    -On Home Page

    1. Newsletter Sign Up: Title, Some Text, and the 'sign up' form[single field, and button]
    2. Calendar of Events: Calendar
    3. Request Resources : Title, Some Text and Internal links
    4. Gallery: Title, 75x75 thumbnails = 2 cols x 2 rows, redirecting to a 'gallery' page when clicked. [Can Use a Plugin here]

    -On [Posts]Single Pages

    1. Category Description: Current Category Title, Category Description
    2. Similar Articles: Titles to 4 articles in the same category

    -On Level 1 Pages

    1. Subpage Menu: Title Text, 1 level list menu of subpages
    2. Other Text Widgets

    With the above setup, will I need to create different 'page' templates for each scenario?
    How can I code the sidebars?

    Cheers

    Posted 5 years ago #
  2. lqunta-

    I'm interested in seeing how this turns out. I've never tried to change the default widgets before. I'll look into it and see what I can figure out.

    -Gene

    Posted 5 years ago #
  3. Hi,

    this is something you might think about: http://codex.wordpress.org/User:Bono/Template_Tags/the_widget .. Could be controlled by the regular conditional tags.

    :) .. this can't replace the flexibility of a well designed sidebar structure. But it's a nice solution in case you have a predefined list of widgets.

    If you need real sidebars you can use the thematic_preset_widgets to filter the $preset_widgets (take a look at lines 262 - 269 [widgets-extensions.php] -- SVN version)

    Chris

    Posted 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.