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.
Wordpress widget area
3
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');
}
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');
}
- Peter01
- Istvan Horvath
- [ 1 ] Thanks
Next Topics on Trending Feed
-
3