Wordpress widget area

2 replies
I am trying to add a new widget area in a wordpress theme. I am using the genesis backbone with the basic child theme. I have created an area using a 'hook' - but don't know how to go about widgetizing that block. I'm not a coder - I'm a try it til you cry uncle, by looking at examples and trying to make them work for me. But I'm calling uncle now.

Would I paste this inside my hook table I created? (in the cell where i want the area to show up) I have created a file called athead_widgets.php.


genesis_register_sidebar( array(
'id' => 'athead-1',
'name' => __( 'AtHead #1', 'childtheme' ),
'description' => __( 'This is the the AtHead section.', 'childtheme' ),
) );
// Add widgeted athead section
add_action('genesis_after_header'.'include_athead_ widgets');
function include_athead_widgets() {
require(CHILD_DIR.'/athead-widgets.php');
}
#area #widget #wordpress
  • Profile picture of the author Peter01
    what do you mean by hook? what are you trying to do?
    {{ DiscussionBoard.errors[3416971].message }}
  • Profile picture of the author Istvan Horvath
    I know how to widgetize normal themes... but I don't touch any so-called premium theme because they make your life more complicated than it should be, plus they cost money.
    I never buy any of those themes - so I know only what others say about them.

    Normally, and I emphasize this again: with a normal theme you just add a few lines in the functions.php file and you add a line to the template file where you want to display the widget. Although, I am afraid that will not work with your theme... I heard that their specific "hooks" are not easy to master.
    Signature

    {{ DiscussionBoard.errors[3417077].message }}

Trending Topics