• Resolved degran

    (@degran)


    So I’ll be the first to say there is a good chance I’m going about this all ass backwards. I’m taking my first wack at developing custom templates/a theme for my wordpress site and I’ve encountered some issues. I’ve got a HomePageTemp.php which is a template I’m using for a custom homepage. It’s composed of 3 CSS created columns and has mostly non-wordpress operated static content on it barring the content() and wp_header() hooks. I’ve got sub pages which are using the primary/secondary aside that I’d like to leave be so my question is, can I a.) create a third aside which i can integrate into my CSS column, or b.) is there a standard for widgets that would allow me to simply drop a hook into the template and be good to go?

    If you need any code or clarification I’ll gladly supply what I can.

Viewing 3 replies - 1 through 3 (of 3 total)
  • a) I don’t see why not. Just create anew widget capable area via register_sidebar.

    b) Not sure what you mean by “a standard”. Are you trying to create a new custom widget?

    Thread Starter degran

    (@degran)

    a.) I haven’t tried register_sidebar yet, in fact I wasn’t aware it existed so I’ll give that a go.

    b.) No, I’ve got an events widget that I want to slap into the column but wasn’t able to find a hook for it, just wondering if most people implemented them in their widgets or not.

    Thanks for the help, hopefully this’ll lead me down the right path.

    Sorry. Didn’t mean to fire info over your head like that. I thought it was something you’d used before.

    http://codex.wordpress.org/Function_Reference/register_sidebar

    You might also want to have a look at Widgetizing_Themes. Although this page references sidebars, it’s exactly the same process whether you’re adding a widget-capable area to a sidebar, the footer or any page/post template.

    With regard to your events widget, in your shoes, I’d be creating a new widget capable area in whatever template I wanted to drop the widget into.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Integrating widgets into custom column’ is closed to new replies.